build: remove migration run from Dockerfile

This commit is contained in:
pablohashescobar 2022-12-15 02:55:03 +05:30
parent f9b8ee0d50
commit c7c2c19d5b
2 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,6 @@ USER captain
# Expose container port and run entry point script # Expose container port and run entry point script
EXPOSE 8000 EXPOSE 8000
RUN python manage.py migrate
RUN apk --update add supervisor RUN apk --update add supervisor

View File

@ -14,7 +14,7 @@ stdout_logfile_maxbytes = 0
[program:backend] [program:backend]
directory=/app directory=/app
command= gunicorn plane.wsgi -k gthread --workers 8 --bind 0.0.0.0:8000 --config gunicorn.config.py --max-requests 10000 --max-requests-jitter 1000 --access-logfile - command= ./bin/takeoff
autostart=true autostart=true
autorestart=true autorestart=true
stderr_logfile=/dev/stdout stderr_logfile=/dev/stdout
@ -24,7 +24,7 @@ stdout_logfile_maxbytes = 0
[program:worker] [program:worker]
directory=/app directory=/app
command= python manage.py rqworker command= ./bin/worker
autostart=true autostart=true
autorestart=true autorestart=true
stderr_logfile=/dev/stdout stderr_logfile=/dev/stdout