mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
4845552560
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
31 lines
602 B
Docker
31 lines
602 B
Docker
FROM ubuntu:18.04
|
|
|
|
# -- Install Pipenv:
|
|
RUN apt update && apt install python3-pip -y && pip3 install pipenv
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
ENV LANG C.UTF-8
|
|
|
|
# -- 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
|