FIX: corregir permiso home de djangouser, warnings de regex y agregar CSRF_TRUSTED_ORIGINS para dominio publico
This commit is contained in:
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user