Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 ["
|
|
|
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"]
|