Using Pipenv in Docker
August 13, 2019
Dockerfile, TOML

  • Dockerfile
  • Pipfile
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

Reach out

© 2024 Chuma Umenze. Some rights reserved.