You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-17 13:02:40 +03:00
Add a note about "tzdata", adjust configuration appropriately, and remove fetch deps too
This commit is contained in:
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
@@ -98,13 +98,18 @@ RUN set -ex \
|
||||
$runDeps \
|
||||
bash \
|
||||
su-exec \
|
||||
&& apk del .build-deps \
|
||||
# tzdata loading functionality is optional, and fails gracefully
|
||||
# tzdata \
|
||||
&& apk del .fetch-deps .build-deps \
|
||||
&& cd / \
|
||||
&& rm -rf \
|
||||
/usr/src/postgresql \
|
||||
/usr/local/include/* \
|
||||
&& find /usr/local -name '*.a' -delete
|
||||
|
||||
# make the sample config easier to munge (and "correct by default")
|
||||
RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
|
||||
|
||||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
|
||||
|
||||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
|
||||
|
||||
Reference in New Issue
Block a user