Skip to content
This repository was archived by the owner on May 6, 2019. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 1.64 KB

File metadata and controls

33 lines (24 loc) · 1.64 KB

python-alpine

dockeri.co

Build Status

Docker Image for python/django apps with alpine linux and dependencies for postgresql, pillow, lxml and fii

Create a Dockerfile in your Python app project

FROM lgatica/python-alpine:3-onbuild
# replace this with your application's default port
EXPOSE 8000
CMD [ "python", "app.py" ]

You can then build and run the Docker image:

docker build -t my-python-app .
docker run -it --rm --name my-running-app my-python-app

Notes

The image assumes that your application has a file named package.json listing its dependencies and defining its start script.