Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -42,12 +42,12 @@ RUN redis-server
|
|
42 |
FROM postgres:latest
|
43 |
|
44 |
# Start Postgres
|
45 |
-
RUN pg_ctl -D /usr/local/pgsql/data start
|
46 |
|
47 |
# Create user, database, and grant privileges
|
48 |
-
RUN psql -U postgres -c "CREATE USER postadmin WITH PASSWORD 'postpass';"
|
49 |
-
RUN psql -U postgres -c "CREATE DATABASE siksalaya;"
|
50 |
-
RUN psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE siksalaya TO postadmin;"
|
51 |
|
52 |
ENV DATABASE_URL=postgresql://postadmin:postpass@localhost/siksalaya
|
53 |
|
|
|
42 |
FROM postgres:latest
|
43 |
|
44 |
# Start Postgres
|
45 |
+
RUN su pg_ctl -D /usr/local/pgsql/data start
|
46 |
|
47 |
# Create user, database, and grant privileges
|
48 |
+
RUN su psql -U postgres -c "CREATE USER postadmin WITH PASSWORD 'postpass';"
|
49 |
+
RUN su psql -U postgres -c "CREATE DATABASE siksalaya;"
|
50 |
+
RUN su psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE siksalaya TO postadmin;"
|
51 |
|
52 |
ENV DATABASE_URL=postgresql://postadmin:postpass@localhost/siksalaya
|
53 |
|