update Dockerfile and settings for static files handling; adjust nginx config for Django and Vue integration
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user