Upload files to "/"

This commit is contained in:
2025-04-01 08:45:17 +00:00
parent fb415260ba
commit 68f7bd31ad
4 changed files with 113 additions and 0 deletions

30
pyDockerfile Normal file
View File

@@ -0,0 +1,30 @@
#use this image for large python programms
#it is larger than the alpine image,
#but has many python packages preinstalled and it is easy to install new ones
FROM python:3.10-bullseye
#RUN rm -r /pyapp
#will be the working directory later
RUN mkdir /pyapp
#sets the new working directory
WORKDIR /pyapp
#install required packages
ADD requirements.txt .
RUN pip install -r requirements.txt
#unbuffered output to stdout
#used it that Python gives out all prints, if not, it will buffer them until many prints done
ENV PYTHONUNBUFFERED 1
#copies the whole directory into the working directory
COPY . /pyapp/