Created
June 15, 2022 04:19
-
-
Save twyle/029924939b4c3dfb8c61d29827b98513 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/ | |
CMD ["python", "main.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment