Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
@@ -42,10 +42,7 @@ COPY ./ .
|
|
42 |
|
43 |
# Start Redis server and PostgreSQL in the background
|
44 |
RUN service redis-server start \
|
45 |
-
&& service postgresql start
|
46 |
-
&& su -u postgres psql -c "CREATE USER postadmin WITH PASSWORD 'postpass';" \
|
47 |
-
&& su -u postgres psql -c "CREATE DATABASE siksalaya;" \
|
48 |
-
&& su -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE sikshyalaya TO postadmin;"
|
49 |
|
50 |
# Switch back to a non-root user for security
|
51 |
USER appuser
|
|
|
42 |
|
43 |
# Start Redis server and PostgreSQL in the background
|
44 |
RUN service redis-server start \
|
45 |
+
&& service postgresql start
|
|
|
|
|
|
|
46 |
|
47 |
# Switch back to a non-root user for security
|
48 |
USER appuser
|