Created
July 13, 2020 15:53
-
-
Save DougAF/601b75331f660d6cbdc97677a0e94c7c to your computer and use it in GitHub Desktop.
dockerfile for GCP
This file contains 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.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