Last active
July 21, 2019 20:14
-
-
Save philippbosch/8d62dfc9ea706f8e8c9d471f73d328b8 to your computer and use it in GitHub Desktop.
Django Dockerfile
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 | |
ENV PYTHONUNBUFFERED 1 | |
ENV WERKZEUG_DEBUG_PIN off | |
ENV DJANGO_SETTINGS_MODULE myproject.settings.dev | |
RUN apt-get update && \ | |
apt-get install -y gettext postgresql-client libpq-dev \ | |
--no-install-recommends && rm -rf /var/lib/apt/lists/* | |
RUN mkdir /code | |
COPY requirements.txt requirements-dev.txt /code/ | |
RUN pip install -r /code/requirements-dev.txt | |
RUN pip install -r /code/requirements.txt | |
WORKDIR /code | |
COPY . /code/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment