Skip to content

Commit

Permalink
Further fixes for Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akorotkov committed Dec 8, 2023
1 parent 82301e5 commit 42f608a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ ENV PGDATA /var/lib/postgresql/data
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
VOLUME /var/lib/postgresql/data

RUN mkdir -p /etc/postgresql && chown -R postgres:postgres /etc/postgresql && chmod 777 /etc/postgresql
RUN mkdir -p /etc/postgresql && chown -R postgres:postgres /etc/postgresql && chmod 700 /etc/postgresql
COPY --chown=postgres:postgres postgresql.docker.conf /etc/postgresql/postgresql.conf
ENV PG_CONF=/etc/postgresql/postgresql.conf

Expand Down Expand Up @@ -253,4 +253,4 @@ STOPSIGNAL SIGINT
# that even 90 seconds may not be long enough in many instances.

EXPOSE 5432
CMD ["postgres"]
CMD ["postgres", "-D", "/etc/postgresql"]

0 comments on commit 42f608a

Please sign in to comment.