FIX: corregir permiso home de djangouser, warnings de regex y agregar CSRF_TRUSTED_ORIGINS para dominio publico

This commit is contained in:
Nachou-u
2026-09-09 13:03:20 -03:00
parent b9e676bed4
commit 1bfecb8f60
3 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -23,10 +23,9 @@ COPY . /app/
# Exponer el puerto
EXPOSE 8000
# Crear un usuario no-root por seguridad (con home directory para Gunicorn)
# Crear un usuario no-root por seguridad
RUN adduser --disabled-password djangouser
RUN chown -R djangouser:djangouser /app
RUN mkdir -p /app/media /app/static && chown -R djangouser:djangouser /app/media /app/static
USER djangouser
# Comando por defecto para iniciar Gunicorn con Uvicorn workers (Producción)