File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:3.18
2
- LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools
2
+ LABEL org.opencontainers.image.source= https://github.com/openzim/kiwix-tools
3
3
4
4
# TARGETPLATFORM is injected by docker build
5
5
ARG TARGETPLATFORM
Original file line number Diff line number Diff line change @@ -2,13 +2,17 @@ ARG VERSION=latest
2
2
3
3
# kiwix-tools is multi-arch
4
4
FROM ghcr.io/kiwix/kiwix-tools:$VERSION
5
- LABEL org.opencontainers.image.source https://github.com/openzim/kiwix-tools
5
+ LABEL org.opencontainers.image.source= https://github.com/openzim/kiwix-tools
6
6
7
7
# expose kiwix-serve default port and workdir
8
8
EXPOSE 8080
9
9
VOLUME /data
10
10
WORKDIR /data
11
11
12
+ # running as a named unprivileged user
13
+ RUN addgroup -S user && adduser -S user -G user
14
+ USER user
15
+
12
16
COPY ./start.sh /usr/local/bin/
13
17
14
18
ENTRYPOINT ["/usr/bin/dumb-init" , "--" , "/usr/local/bin/start.sh" ]
You can’t perform that action at this time.
0 commit comments