Skip to content

Instantly share code, notes, and snippets.

@balvinder294
Created January 18, 2022 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balvinder294/a8c8a4dc3356fa7082984c0cccc29318 to your computer and use it in GitHub Desktop.
Save balvinder294/a8c8a4dc3356fa7082984c0cccc29318 to your computer and use it in GitHub Desktop.
Docker file to dockerize Falcon Python Api or app | https://tekraze.com
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