zrpaplicacoes / python-baseimage

@zrpaplicacoes base docker image for projects using Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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):

Giovanni Armane
Giovanni Armane

🚧 💻
Pedro Gryzinsky
Pedro Gryzinsky

🚧
Matheus Rios
Matheus Rios

💻

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

About

@zrpaplicacoes base docker image for projects using Python3

License:MIT License


Languages

Language:Shell 79.1%Language:Dockerfile 20.9%