Skip to content

Instantly share code, notes, and snippets.

@Beomi
Last active August 30, 2019 10:23
Show Gist options
  • Save Beomi/bd7bd1beee9b7b9979878b4c2cd022ec to your computer and use it in GitHub Desktop.
Save Beomi/bd7bd1beee9b7b9979878b4c2cd022ec to your computer and use it in GitHub Desktop.
Dockerfile for python(django) project
FROM python:3.7
ENV PYTHONUNBUFFERED 1
ENV PIPENV_VENV_IN_PROJECT 1
RUN mkdir /code
WORKDIR /code
RUN pip install -U pip && \
pip install pipenv
COPY Pipfile* /code/
RUN pipenv install --system
COPY . /code/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment