falcon-docker
falcon-docker copied to clipboard
Docker image for Falcon Python3 app with Gunicorn
falcon-docker
Minimal Docker image for Falcon Framework Python3 app on Alpine Linux
Run with:
docker run -it -p8080:80 berndverst/falcon
How to use this image
We assume your application code is in the directory ./app and your Falcon entrypoint is the app object in ./app/main.py.
.
├── Dockerfile
└── app
└── main.py
Create a Dockerfile as follows:
FROM berndverst/falcon
COPY ./app /app
Make sure to map a local port to container port 80.
Example:
docker build -t myfalcon .`
docker run -it -p8080:80 myfalcon
Docker Hub: https://hub.docker.com/r/berndverst/falcon