Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -31,6 +31,9 @@ RUN apt-get update \
|
|
31 |
# Switch to the root user
|
32 |
USER root
|
33 |
|
|
|
|
|
|
|
34 |
# Copy the built virtual environment from the builder stage
|
35 |
COPY --from=builder /usr/local /usr/local
|
36 |
|
|
|
31 |
# Switch to the root user
|
32 |
USER root
|
33 |
|
34 |
+
# Create the postgres user and group
|
35 |
+
RUN groupadd -r postgres && useradd --no-log-init -r -g postgres postgres
|
36 |
+
|
37 |
# Copy the built virtual environment from the builder stage
|
38 |
COPY --from=builder /usr/local /usr/local
|
39 |
|