Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -21,9 +21,12 @@ RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmo
|
|
21 |
# Install PostgreSQL 16 client and server
|
22 |
RUN apt-get update && apt-get install -y postgresql-client-16 postgresql-server-dev-16
|
23 |
|
|
|
|
|
|
|
24 |
# Create the PostgreSQL data directory and set permissions
|
25 |
RUN mkdir -p /var/lib/postgresql/data && \
|
26 |
-
chown -R
|
27 |
|
28 |
# Copy the entrypoint script to the container
|
29 |
COPY entrypoint.sh /usr/local/bin/
|
|
|
21 |
# Install PostgreSQL 16 client and server
|
22 |
RUN apt-get update && apt-get install -y postgresql-client-16 postgresql-server-dev-16
|
23 |
|
24 |
+
# Create the foobar user and group
|
25 |
+
RUN groupadd -r foobar && useradd -r -g foobar foobar
|
26 |
+
|
27 |
# Create the PostgreSQL data directory and set permissions
|
28 |
RUN mkdir -p /var/lib/postgresql/data && \
|
29 |
+
chown -R foobar:foobar /var/lib/postgresql/data
|
30 |
|
31 |
# Copy the entrypoint script to the container
|
32 |
COPY entrypoint.sh /usr/local/bin/
|