fix user container permissions

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-06-06 12:10:54 +02:00
parent b3470fe6a8
commit ad570de0b1
2 changed files with 2 additions and 2 deletions

View file

@ -8,6 +8,6 @@ RUN set -ex; \
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 # USER root is probably used
LABEL com.centurylinklabs.watchtower.monitor-only="true" LABEL com.centurylinklabs.watchtower.monitor-only="true"

View file

@ -11,7 +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 USER 1000:0
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"