Skip to content

Instantly share code, notes, and snippets.

@kayode-adechinan
Created August 6, 2019 17:18
Show Gist options
  • Save kayode-adechinan/cbda08cddf9253369c01e0ac1e4d8f4f to your computer and use it in GitHub Desktop.
Save kayode-adechinan/cbda08cddf9253369c01e0ac1e4d8f4f to your computer and use it in GitHub Desktop.
Simple dockerfile for django
# Pull base image
FROM python:3.7-slim
# Set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /code
# Install dependencies
RUN pip install pipenv
COPY Pipfile Pipfile.lock /code/
RUN pipenv install --system
# Copy project
COPY . /code/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment