Dockerfile aktualisiert
All checks were successful
Create postgresql docker image / Explore-Gitea-Actions (push) Successful in 15s
All checks were successful
Create postgresql docker image / Explore-Gitea-Actions (push) Successful in 15s
This commit is contained in:
parent
c423b2b801
commit
d25dcc903f
@ -7,6 +7,9 @@ ARG VERSION=16-20240926
|
|||||||
RUN apk update --no-cache ; \
|
RUN apk update --no-cache ; \
|
||||||
apk add --no-cache postgresql16-client
|
apk add --no-cache postgresql16-client
|
||||||
|
|
||||||
|
# Erstelle einen Benutzer mit UID 26
|
||||||
|
RUN adduser -u 1000 -D -S backupuser
|
||||||
|
|
||||||
# Arbeitsverzeichnis erstellen
|
# Arbeitsverzeichnis erstellen
|
||||||
WORKDIR /backup
|
WORKDIR /backup
|
||||||
|
|
||||||
@ -16,7 +19,8 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|||||||
# Skript ausführbar machen
|
# Skript ausführbar machen
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
USER 26
|
# Wechsle den Benutzer auf den erstellten Benutzer mit UID 26
|
||||||
|
USER 1000
|
||||||
|
|
||||||
# Festlegen des EntryPoints für das Docker-Image
|
# Festlegen des EntryPoints für das Docker-Image
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
Loading…
Reference in New Issue
Block a user