Skip to content

Instantly share code, notes, and snippets.

@philippbosch
Last active July 21, 2019 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippbosch/8d62dfc9ea706f8e8c9d471f73d328b8 to your computer and use it in GitHub Desktop.
Save philippbosch/8d62dfc9ea706f8e8c9d471f73d328b8 to your computer and use it in GitHub Desktop.
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