mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
a8185d91a2
This makes it clearer that you don't have to do `pipenv run python3 main.py` for instance.
28 lines
542 B
Docker
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
|