ashwinR commited on
Commit
8b5a756
·
1 Parent(s): af10b06

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -44,9 +44,9 @@ COPY ./ .
44
  # Create PostgreSQL users and databases in the background
45
  RUN service redis-server start \
46
  && service postgresql start \
47
- && sudo -u postgres psql -c "CREATE USER postadmin WITH PASSWORD 'postpass';" \
48
- && sudo -u postgres psql -c "CREATE DATABASE siksalaya;" \
49
- && sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE sikshyalaya TO postadmin;"
50
 
51
 
52
  # Start the FastAPI app using Uvicorn
 
44
  # Create PostgreSQL users and databases in the background
45
  RUN service redis-server start \
46
  && service postgresql start \
47
+ && su -u postgres psql -c "CREATE USER postadmin WITH PASSWORD 'postpass';" \
48
+ && su -u postgres psql -c "CREATE DATABASE siksalaya;" \
49
+ && su -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE sikshyalaya TO postadmin;"
50
 
51
 
52
  # Start the FastAPI app using Uvicorn