Created
December 15, 2018 14:15
-
-
Save mckabi/3059cc6ab526f480ce61823bef54e744 to your computer and use it in GitHub Desktop.
pipenv + docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7 | |
RUN apt-get -qq update && \ | |
apt-get -q -y upgrade && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y locales locales-all | |
RUN apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
#ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
RUN pip install --upgrade pip | |
RUN pip install --upgrade pipenv | |
ADD Pipfile* /app/ | |
WORKDIR /app | |
RUN pipenv install --system --deploy | |
ADD . /app | |
ENV ... | |
RUN ... | |
EXPOSE ... | |
CMD ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment