ashwinR commited on
Commit
052b861
·
1 Parent(s): 4a62c3c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -8
Dockerfile CHANGED
@@ -25,7 +25,15 @@ RUN apt-get update \
25
  RUN apt-get update \
26
  && apt-get install -y --no-install-recommends postgresql-client \
27
  && apt-get clean \
28
- && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
29
 
30
  # Switch to the root user
31
  USER root
@@ -36,13 +44,6 @@ COPY --from=builder /usr/local /usr/local
36
  # Copy the rest of the backend files to the container
37
  COPY ./ .
38
 
39
- FROM redis:latest AS redis
40
- RUN redis-server
41
-
42
- FROM postgres:latest
43
-
44
- # Start Postgres
45
- RUN postgres
46
 
47
  # Create user, database, and grant privileges
48
  RUN su psql -U postgres -c "CREATE USER postadmin WITH PASSWORD 'postpass';"
 
25
  RUN apt-get update \
26
  && apt-get install -y --no-install-recommends postgresql-client \
27
  && apt-get clean \
28
+ && rm -rf /var/lib/apt/lists/
29
+
30
+ FROM redis:latest AS redis
31
+ RUN redis-server
32
+
33
+ FROM postgres:latest
34
+
35
+ # Start Postgres
36
+ RUN postgres
37
 
38
  # Switch to the root user
39
  USER root
 
44
  # Copy the rest of the backend files to the container
45
  COPY ./ .
46
 
 
 
 
 
 
 
 
47
 
48
  # Create user, database, and grant privileges
49
  RUN su psql -U postgres -c "CREATE USER postadmin WITH PASSWORD 'postpass';"