Files
pipenv/Dockerfile
T
Marvin Steadfast 20ee4de8d3 Uses ONBUILD in Dockerfile to install deps while building
Copies `Pipfile` and `Pipefile.lock`, installs deps on building a docker
image using the official pipenv image.
2017-10-16 14:24:04 +02:00

25 lines
453 B
Docker

FROM python:3.6.3
# -- 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