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/ RUN mkdir /.cache RUN chmod -R 777 /.cache RUN chmod -R 777 /app/datagrids RUN chmod -R 777 /usr/local/lib/python3.9/site-packages/kangas/frontend/standalone/.next/ CMD /app/startup.sh