Skip to content

Instantly share code, notes, and snippets.

@rnovec
Last active March 17, 2020 14:49
Show Gist options
  • Save rnovec/c6ba7907afe3130dfdee9a024bb5c41a to your computer and use it in GitHub Desktop.
Save rnovec/c6ba7907afe3130dfdee9a024bb5c41a to your computer and use it in GitHub Desktop.
Dockerinzing Python/Django
FROM python:3.6.6
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN rm requirements.txt
COPY . /
WORKDIR /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment