Created
June 13, 2022 08:08
-
-
Save twyle/ca0891868aefd17551cf3318889d3b36 to your computer and use it in GitHub Desktop.
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 official base image | |
FROM python:3.9.5-slim-buster | |
# set work directory | |
WORKDIR /usr/src/app | |
# set environment variables | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
# install dependencies | |
RUN pip install --upgrade pip | |
COPY ./requirements.txt /usr/src/app/requirements.txt | |
RUN pip install -r requirements.txt | |
# copy project | |
COPY . /usr/src/app/ | |
ENTRYPOINT [ "python", "main.py" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment