Skip to content

Instantly share code, notes, and snippets.

@aaronlab
Created March 2, 2021 13:01
Show Gist options
  • Save aaronlab/d7273978b69bdfe9442e1581adb94e3c to your computer and use it in GitHub Desktop.
Save aaronlab/d7273978b69bdfe9442e1581adb94e3c to your computer and use it in GitHub Desktop.
DockerFile for Django
FROM python:3.7-alpine
MAINTAINER Aaron Lee
ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN mkdir /app
WORKDIR /app
COPY ./app /app
RUN adduser -D user
USER user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment