Skip to content

Instantly share code, notes, and snippets.

@RobotGyal
Last active May 18, 2020 02:04
Show Gist options
  • Save RobotGyal/c650d20e886cec0aea0fbaca8c6d756e to your computer and use it in GitHub Desktop.
Save RobotGyal/c650d20e886cec0aea0fbaca8c6d756e to your computer and use it in GitHub Desktop.
# Pull image
FROM python:3
# Set environment variable
ENV PYTHONUNBUFFERED 1
# Setup working directory
WORKDIR /code
# Move django app folder into working directory in conatiner
COPY ./personal_site/ /code
# Move requirements file into working directory in conatiner
COPY requirements.txt /code
# Install requirements in the working directory
RUN pip3 install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment