Created
August 13, 2019 00:51
-
-
Save chumaumenze/52ba7f370c0721b0bba6b981c07b8cb6 to your computer and use it in GitHub Desktop.
Using Pipenv in Docker
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 | |
ENV RUNNING_MODE production | |
WORKDIR /app | |
COPY Pipfile Pipfile.lock /app/ | |
RUN pip install pipenv && \ | |
pipenv install --system --deploy --ignore-pipfile | |
COPY . /app/ | |
EXPOSE 8000 | |
CMD pipenv run gunicorn app:app -k gevent |
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
[[source]] | |
url = "https://pypi.python.org/simple" | |
verify_ssl = true | |
[packages] | |
gunicorn = "*" | |
decorator = "*" | |
brotlipy = "*" | |
gevent = "*" | |
Flask = "*" | |
meinheld = "*" | |
six = "*" | |
pyyaml = {git = "https://github.com/yaml/pyyaml.git"} | |
requests = "*" | |
[dev-packages] | |
rope = "*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment