Skip to content

Instantly share code, notes, and snippets.

@taegon
Created May 14, 2021 00:17
Show Gist options
  • Save taegon/6fca8fa8d19161d3440f4d9878e9fdaa to your computer and use it in GitHub Desktop.
Save taegon/6fca8fa8d19161d3440f4d9878e9fdaa to your computer and use it in GitHub Desktop.
Dockerfile
#pull official base image
FROM python:3.8-slim-buster
#set work directory
WORKDIR /usr/src/app
#set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
COPY . /usr/src/app/
#install dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment