Sign inSign up

zrpaplicacoes/python

By zrpaplicacoes

Updated almost 7 years ago

Base image for Python projects

Image
0

1.6K

zrpaplicacoes/python repository overview

Python Base Image

All Contributors

Commitizen friendly

An image for Python projects with a small set of features to ease developing applications using docker and docker-compose. This image is built on top of Python and Python Alpine official images. The image and available tags can be found in Docker Hub.

This image opted to use Poetry as a package manager. Documentation for poetry can be found here here.

Using the image

This image is intended to be used as a base image for your own Dockerfile, or directly through docker-compose. For example:

e.g. Dockerfile
FROM zrpaplicacoes/python:3.7

# custom configuration
e.g. Docker Compose
version: "3"
services:
  app:
    image: zrpaplicacoes/python:latest

Handling Permissions (Linux only)

Before running your container ensure to provide to docker run your user id through the environment:

docker run -e USER_ID=<MY_USER_ID> zrpaplicacoes/python:latest

This ensures that the user id inside the container is the same as the host. On Docker Compose, it's advised to provide user id as an environment variable through the env_file option.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Tag summary

Content type

Image

Digest

Size

351.5 MB

Last updated

almost 7 years ago

docker pull zrpaplicacoes/python