ashwinR commited on
Commit
a09c514
1 Parent(s): c43171c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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, PostgreSQL server, and the FastAPI app using Uvicorn
41
- CMD ["bash", "-c", "service postgresql start && redis-server --daemonize yes && uvicorn app:app --host 0.0.0.0 --port 7860"]
 
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"]