Skip to content

Instantly share code, notes, and snippets.

@chumaumenze
Created August 13, 2019 00:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chumaumenze/52ba7f370c0721b0bba6b981c07b8cb6 to your computer and use it in GitHub Desktop.
Save chumaumenze/52ba7f370c0721b0bba6b981c07b8cb6 to your computer and use it in GitHub Desktop.
Using Pipenv in Docker
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
[[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