We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac7516 commit 83267faCopy full SHA for 83267fa
1 file changed
postgres18/Dockerfile
@@ -7,8 +7,11 @@ LABEL description="Postgres18 image for CSlant development"
7
# Set Timezone
8
#####################################
9
ARG TZ=Asia\Ho_Chi_Minh
10
-ENV TZ ${TZ}
11
-RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R postgres:root /var/lib/postgresql/data
+ENV TZ=${TZ}
+RUN mkdir -p /var/lib/postgresql/data && \
12
+ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
13
+ echo $TZ > /etc/timezone && \
14
+ chown -R postgres:root /var/lib/postgresql/data
15
16
COPY pg.cnf /etc/postgresql/conf.d/pg.cnf
17
0 commit comments