From 9ee4f5bf021b0fb8280320c30965de68cd48cdde Mon Sep 17 00:00:00 2001 From: lbrinkhaus Date: Sun, 2 Jan 2022 18:32:05 +0100 Subject: [PATCH] Upgrade APK and give entrypoint executable permissions --- 13/Dockerfile | 4 +++- 14/Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/13/Dockerfile b/13/Dockerfile index 53c5ca2..aeef3ad 100644 --- a/13/Dockerfile +++ b/13/Dockerfile @@ -2,7 +2,7 @@ FROM harbor.dragse.it/base/alpine:3.15 RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories - RUN apk --no-cache update \ + RUN apk --no-cache upgrade \ && apk --no-cache add ca-certificates wget openssl \ && update-ca-certificates @@ -155,6 +155,8 @@ RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PG VOLUME /var/lib/postgresql/data COPY 13/docker-entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker-entrypoint.sh + ENTRYPOINT ["docker-entrypoint.sh"] # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL diff --git a/14/Dockerfile b/14/Dockerfile index 4434da0..1ed3a10 100644 --- a/14/Dockerfile +++ b/14/Dockerfile @@ -2,7 +2,7 @@ FROM harbor.dragse.it/base/alpine:3.15 RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories - RUN apk --no-cache update \ + RUN apk --no-cache upgrade \ && apk --no-cache add ca-certificates wget openssl \ && update-ca-certificates @@ -158,6 +158,8 @@ RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PG VOLUME /var/lib/postgresql/data COPY 14/docker-entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker-entrypoint.sh + ENTRYPOINT ["docker-entrypoint.sh"] # We set the default STOPSIGNAL to SIGINT, which corresponds to what PostgreSQL