FROM python:3.12.2 AS python-nginx RUN apt-get update RUN apt-get install -y \ vim \ supervisor \ nginx \ && rm -rf /var/lib/apt/lists/* WORKDIR /app ADD requirements.txt ./ RUN pip install --no-cache-dir pip==25.0.1 && \ pip install --no-cache-dir -r ./requirements.txt FROM python-nginx AS app-files COPY manage.py wsgi.py supervisord.conf entrypoint.sh ./ COPY ./appa/ ./appa/ RUN python manage.py collectstatic --noinput RUN chmod -R 777 /app/django_static RUN chmod +x entrypoint.sh FROM python-nginx COPY --from=app-files /app /app CMD ["/app/entrypoint.sh"]