#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/