Skip to content

Instantly share code, notes, and snippets.

@DougAF
Created July 13, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DougAF/601b75331f660d6cbdc97677a0e94c7c to your computer and use it in GitHub Desktop.
Save DougAF/601b75331f660d6cbdc97677a0e94c7c to your computer and use it in GitHub Desktop.
dockerfile for GCP
FROM python:3.7-slim
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./
RUN pip install pipenv
RUN pipenv install --deploy --system
CMD exec gunicorn --bind :$PORT --workers 1 --worker-class uvicorn.workers.UvicornWorker --threads 8 app.main:app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment