FIX: crear home para djangouser (Permission denied) + corregir SyntaxWarnings en procurement/forms.py

This commit is contained in:
Nachou-u
2026-09-09 12:56:51 -03:00
parent 63d1b87506
commit b9e676bed4
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -23,9 +23,10 @@ COPY . /app/
# Exponer el puerto
EXPOSE 8000
# Crear un usuario no-root por seguridad
RUN adduser --disabled-password --no-create-home djangouser
# Crear un usuario no-root por seguridad (con home directory para Gunicorn)
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)