Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Remove 'mirror' user and all references #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 0 additions & 1 deletion src/docker/conf/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
user=mirror