Skip to content

Instantly share code, notes, and snippets.

@mckabi
Created December 15, 2018 14:15
Show Gist options
  • Save mckabi/3059cc6ab526f480ce61823bef54e744 to your computer and use it in GitHub Desktop.
Save mckabi/3059cc6ab526f480ce61823bef54e744 to your computer and use it in GitHub Desktop.
pipenv + docker
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