Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -37,5 +37,5 @@ COPY ./ .
|
|
37 |
# Expose the backend port (change this if your FastAPI app uses a different port)
|
38 |
EXPOSE 7860
|
39 |
|
40 |
-
# Start Redis server
|
41 |
-
CMD ["bash", "-c", "service
|
|
|
37 |
# Expose the backend port (change this if your FastAPI app uses a different port)
|
38 |
EXPOSE 7860
|
39 |
|
40 |
+
# Start Redis server and the FastAPI app using Uvicorn
|
41 |
+
CMD ["bash", "-c", "service redis-server start && pg_ctl start -D /usr/local/pgsql/data -l logfile && uvicorn app:app --host 0.0.0.0 --port 7860"]
|