From 50b4efc05d8eb6c565f5af77ec89d1d2f2ea0046 Mon Sep 17 00:00:00 2001 From: sdoerl Date: Tue, 12 Jul 2022 17:47:46 +0200 Subject: [PATCH] Remove 'mirror' user and all references --- Dockerfile | 6 ------ src/docker/conf/supervisord.conf | 1 - 2 files changed, 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1e295cc..a8f554a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,15 +21,9 @@ LABEL org.label-schema.vendor="sspringett" LABEL org.label-schema.version=$BUILD_VERSION LABEL org.label-schema.docker.cmd="docker run -dit --name mirror -p 80:80 --mount type=bind,source=\"$(pwd)\"/target/docs/,target=/usr/local/apache2/htdocs sspringett/nvdmirror" -ENV user=mirror - RUN apk update && \ apk add --no-cache openjdk8-jre dcron nss supervisor && \ - addgroup -S $user && \ - adduser -S $user -G $user && \ mkdir -p /tmp/nvd && \ - chown -R $user:$user /tmp/nvd && \ - chown -R $user:$user /usr/local/apache2/htdocs && \ rm -v /usr/local/apache2/htdocs/index.html COPY ["/src/docker/conf/supervisord.conf", "/etc/supervisor/conf.d/supervisord.conf"] diff --git a/src/docker/conf/supervisord.conf b/src/docker/conf/supervisord.conf index ca6fb1b..aa56ddf 100644 --- a/src/docker/conf/supervisord.conf +++ b/src/docker/conf/supervisord.conf @@ -20,4 +20,3 @@ autorestart=false stdout_logfile=/dev/fd/1 stdout_logfile_maxbytes=0 redirect_stderr=true -user=mirror \ No newline at end of file