mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
40 lines
887 B
Docker
40 lines
887 B
Docker
FROM heroku/heroku:18-build
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV LC_ALL C.UTF-8
|
|
ENV LANG C.UTF-8
|
|
# Python, don't write bytecode!
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
# -- Install Pipenv:
|
|
RUN apt update && apt install python3.7-dev libffi-dev -y
|
|
RUN curl --silent https://bootstrap.pypa.io/get-pip.py | python3.7
|
|
|
|
# Backwards compatility.
|
|
RUN rm -fr /usr/bin/python3 && ln /usr/bin/python3.7 /usr/bin/python3
|
|
|
|
RUN pip3 install pipenv
|
|
|
|
# -- 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
|