Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -30,8 +30,12 @@ RUN service postgresql start
|
|
| 30 |
# Set environment variables for Alembic
|
| 31 |
ENV DATABASE_URL=postgresql://postadmin:postpass@localhost/siksalaya
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Run Alembic migrations
|
| 34 |
-
RUN alembic upgrade head
|
| 35 |
|
| 36 |
# Start the FastAPI app using Uvicorn
|
| 37 |
CMD ["bash", "-c", "redis-server --daemonize yes && uvicorn app:app --host 0.0.0.0 --port 7860"]
|
|
|
|
| 30 |
# Set environment variables for Alembic
|
| 31 |
ENV DATABASE_URL=postgresql://postadmin:postpass@localhost/siksalaya
|
| 32 |
|
| 33 |
+
RUN ls
|
| 34 |
+
|
| 35 |
+
RUN alembic revision --autogenerate -m "migrations"
|
| 36 |
+
|
| 37 |
# Run Alembic migrations
|
| 38 |
+
#RUN alembic upgrade head
|
| 39 |
|
| 40 |
# Start the FastAPI app using Uvicorn
|
| 41 |
CMD ["bash", "-c", "redis-server --daemonize yes && uvicorn app:app --host 0.0.0.0 --port 7860"]
|