FROM python:3.9 COPY requirements.txt / RUN pip install -r /requirements.txt RUN apt-get -y update && apt-get -y install nginx WORKDIR /app COPY ./ /app COPY nginx.conf /etc/nginx/nginx.conf RUN chmod 777 /app/startup.sh RUN chmod -R 777 /etc/nginx RUN chmod -R 777 /var/lib/ RUN chmod -R 777 /var/log/ CMD /app/startup.sh