CONFIG: preparar dockerfile y compose para gitea vps

This commit is contained in:
Nachou-u
2026-09-09 08:35:08 -03:00
parent 29c447c23e
commit d1c4855962
4 changed files with 22 additions and 24 deletions
+7 -2
View File
@@ -23,5 +23,10 @@ COPY . /app/
# Exponer el puerto
EXPOSE 8000
# Comando por defecto para iniciar Daphne (ASGI)
CMD ["daphne", "-b", "0.0.0.0", "-p", "8000", "config.asgi:application"]
# Crear un usuario no-root por seguridad
RUN adduser --disabled-password --no-create-home djangouser
RUN chown -R djangouser:djangouser /app
USER djangouser
# Comando por defecto para iniciar Gunicorn con Uvicorn workers (Producción)
CMD ["gunicorn", "config.asgi:application", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--workers", "3"]