Skip to content

Instantly share code, notes, and snippets.

@philippbosch
Last active Jul 21, 2019
Embed
What would you like to do?
Django Dockerfile
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