Last active
March 17, 2020 14:49
-
-
Save rnovec/c6ba7907afe3130dfdee9a024bb5c41a to your computer and use it in GitHub Desktop.
Dockerinzing Python/Django
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.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