Files
pipenv/Dockerfile
T
Charles-Axel Dein a8185d91a2 Add CMD to example Dockerfile usage
This makes it clearer that you don't have to do `pipenv run python3 main.py` for instance.
2018-02-02 11:39:08 +01:00

28 lines
542 B
Docker

FROM python:3.6.4
# -- Install Pipenv:
RUN set -ex && pip install pipenv --upgrade
# -- Install Application into container:
RUN set -ex && mkdir /app
WORKDIR /app
# -- Adding Pipfiles
ONBUILD COPY Pipfile Pipfile
ONBUILD COPY Pipfile.lock Pipfile.lock
# -- Install dependencies:
ONBUILD RUN set -ex && pipenv install --deploy --system
# --------------------
# - Using This File: -
# --------------------
# FROM kennethreitz/pipenv
# COPY . /app
# -- Replace with the correct path to your app's main executable
# CMD python3 main.py