feat: add dev and prod deployment scaffolding

This commit is contained in:
Md Bayazid Bostame
2026-03-28 20:45:07 +01:00
parent 3c0073142f
commit 2b9b46bd15
13 changed files with 420 additions and 1 deletions

View File

@@ -15,5 +15,5 @@ COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
COPY . /app
RUN chmod +x /app/entrypoint-web.sh /app/entrypoint-worker.sh
RUN chmod +x /app/entrypoint-web.sh /app/entrypoint-worker.sh /app/entrypoint-web-prod.sh /app/entrypoint-worker-prod.sh
RUN chown -R app:app /app

9
backend/entrypoint-web-prod.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
exec gunicorn config.wsgi:application \
--bind 0.0.0.0:8000 \
--workers 3 \
--timeout 120 \
--access-logfile - \
--error-logfile -

View File

@@ -0,0 +1,4 @@
#!/bin/sh
set -e
exec celery -A config worker -l info