Created
March 2, 2021 13:01
-
-
Save aaronlab/d7273978b69bdfe9442e1581adb94e3c to your computer and use it in GitHub Desktop.
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
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