Last active
June 3, 2021 21:35
-
-
Save regulad/8da6e965f823155c6c4bd15db803b774 to your computer and use it in GitHub Desktop.
Python Dockerfile with Git
This file contains 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
# syntax=docker/dockerfile:1 | |
FROM python:3.9.5-slim-buster | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git | |
WORKDIR /app | |
COPY requirements.txt requirements.txt | |
RUN pip3 install -r requirements.txt | |
COPY . . | |
CMD [ "python", "./main.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment