update Dockerfile and settings for static files handling; adjust nginx config for Django and Vue integration

This commit is contained in:
2025-11-29 22:49:25 +01:00
parent 6144c28855
commit 598b10b574
5 changed files with 35 additions and 25 deletions

View File

@@ -42,11 +42,14 @@ COPY --from=builder /usr/local/bin/ /usr/local/bin/
# Copy application code with ownership
COPY --chown=appuser:appuser . .
# Collect static files
RUN python manage.py collectstatic --noinput
# Switch to non-root user
USER appuser
# Expose Django port
EXPOSE 7080
EXPOSE 7090
# Run Django with uvicorn
CMD ["uvicorn", "MPM:application", "--host", "0.0.0.0", "--port", "7080"]
CMD ["uvicorn", "MPM:application", "--host", "0.0.0.0", "--port", "7090"]