We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9062c5e commit 30cf69fCopy full SHA for 30cf69f
Dockerfile
@@ -1,15 +1,12 @@
1
FROM docker:dind
2
-# hadolint ignore=DL3018
3
RUN apk update && \
4
- apk add --no-cache xorriso git xz curl ca-certificates iptables cpio bash perl-utils \
5
- rm -rf /var/cache/apk/*
+ apk add --no-cache xorriso git xz curl ca-certificates iptables cpio bash perl-utils && \
+ addgroup -S docker && \
+ adduser -S docker-user -G docker
6
7
-#RUN apk add -U --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing aufs-util
8
-
9
-# RUN addgroup -g 2999 docker
10
11
-# Create app directory
12
WORKDIR /usr/src/app
13
COPY . .
14
15
-CMD ["/usr/src/app/iso/scripts/generate_ISO.sh"]
+USER docker-user # Ensure the container runs as a non-root user
+
+CMD ["/usr/src/app/iso/scripts/generate_ISO.sh"]
0 commit comments