ashwinR commited on
Commit
bb57f2b
1 Parent(s): 1979bc2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -51,6 +51,7 @@ RUN service redis-server start \
51
  # && psql -c "GRANT ALL PRIVILEGES ON DATABASE siksalaya TO postadmin;" \
52
  # && pg_ctl stop -D /usr/local/pgsql/data
53
 
54
-
 
55
  # Start the FastAPI app using Uvicorn
56
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
51
  # && psql -c "GRANT ALL PRIVILEGES ON DATABASE siksalaya TO postadmin;" \
52
  # && pg_ctl stop -D /usr/local/pgsql/data
53
 
54
+ RUN alembic revision --autogenerate -m "migrations"
55
+ RUN alembic upgrade head
56
  # Start the FastAPI app using Uvicorn
57
+ CMD ["bash", "-c", "redis-server --daemonize yes && uvicorn app:app --host 0.0.0.0 --port 7860"]