Created
August 6, 2019 17:18
-
-
Save kayode-adechinan/cbda08cddf9253369c01e0ac1e4d8f4f to your computer and use it in GitHub Desktop.
Simple dockerfile for django
This file contains hidden or 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
# 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