Created
January 18, 2022 17:18
-
-
Save balvinder294/a8c8a4dc3356fa7082984c0cccc29318 to your computer and use it in GitHub Desktop.
Docker file to dockerize Falcon Python Api or app | https://tekraze.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.11.0a3-alpine3.15 | |
EXPOSE 8000 | |
# Install gunicorn & falcon | |
RUN pip install gunicorn requests falcon --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org | |
# Add demo app | |
COPY ./app /app | |
WORKDIR /app | |
CMD ["gunicorn", "-b", "0.0.0.0:8000", "main:api"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment