mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #2661 from nextcloud/enh/noid/add-user
Dockerfiles - Add USER to all files
This commit is contained in:
commit
0ab721f1d6
8 changed files with 11 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
# Caddy is a requirement
|
|
||||||
FROM caddy:2.6.4-alpine as caddy
|
FROM caddy:2.6.4-alpine as caddy
|
||||||
|
|
||||||
FROM httpd:2.4.57-alpine3.17
|
FROM httpd:2.4.57-alpine3.17
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ VOLUME /root
|
||||||
COPY --chmod=770 *.sh /
|
COPY --chmod=770 *.sh /
|
||||||
|
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
|
USER root
|
||||||
|
|
||||||
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
||||||
ENV BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6"
|
ENV BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6"
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,7 @@ RUN set -ex; \
|
||||||
apk add --no-cache tzdata; \
|
apk add --no-cache tzdata; \
|
||||||
cat /tmp/clamav.conf | tee -a /etc/clamav/clamd.conf; \
|
cat /tmp/clamav.conf | tee -a /etc/clamav/clamd.conf; \
|
||||||
rm /tmp/clamav.conf
|
rm /tmp/clamav.conf
|
||||||
|
|
||||||
|
USER clamav
|
||||||
|
|
||||||
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,7 @@ RUN set -ex; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
elasticsearch-plugin install --batch ingest-attachment
|
elasticsearch-plugin install --batch ingest-attachment
|
||||||
|
|
||||||
|
USER 1000
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z localhost 9200 || exit 1
|
HEALTHCHECK CMD nc -z localhost 9200 || exit 1
|
||||||
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
command=/cron.sh
|
command=/cron.sh
|
||||||
|
user=root
|
||||||
|
|
||||||
[program:backup-time-file-watcher]
|
[program:backup-time-file-watcher]
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
# From https://github.com/nextcloud/docker/blob/master/23/fpm-alpine/Dockerfile
|
|
||||||
FROM php:8.1.19-fpm-alpine3.17
|
FROM php:8.1.19-fpm-alpine3.17
|
||||||
|
|
||||||
ENV PHP_MEMORY_LIMIT 512M
|
ENV PHP_MEMORY_LIMIT 512M
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile
|
# From https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/Dockerfile
|
||||||
FROM onlyoffice/documentserver:7.3.3.50
|
FROM onlyoffice/documentserver:7.3.3.50
|
||||||
|
|
||||||
|
# USER root is probably used
|
||||||
|
|
||||||
HEALTHCHECK CMD nc -z localhost 80 || exit 1
|
HEALTHCHECK CMD nc -z localhost 80 || exit 1
|
||||||
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,7 @@ COPY --from=watchtower /watchtower /watchtower
|
||||||
|
|
||||||
COPY --chmod=775 start.sh /start.sh
|
COPY --chmod=775 start.sh /start.sh
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
ENTRYPOINT ["/start.sh"]
|
ENTRYPOINT ["/start.sh"]
|
||||||
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue