FROM python:3.11-alpine3.18 AS django-static-builder RUN pip install --no-cache-dir poetry==1.5.1 COPY . /app/src WORKDIR /app/src RUN poetry config virtualenvs.create false && \ poetry install --no-interaction --no-ansi RUN ./manage.py collectstatic --noinput CMD ./manage.py runserver 0.0.0.0:8080 FROM nginx:1.25.1-alpine AS front COPY --from=django-static-builder /app/src/static /data/static