Update Docker configuration: change command to use entrypoint script, set superuser environment variables, and adjust NGINX settings for port and server name.

This commit is contained in:
2025-11-11 10:43:23 +00:00
parent 7021035f94
commit 99ae905cb0
8 changed files with 92 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ WORKDIR /app
COPY ./app .
RUN python manage.py collectstatic --noinput
RUN chmod +x /app/entrypoint.sh
# =============================================
# 5. Create non-root user
@@ -55,4 +56,4 @@ EXPOSE 80
# =============================================
# 6. Launch the app
# =============================================
CMD ["gunicorn", "keywarden.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "3"]
CMD ["./entrypoint.sh"]