-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
36 lines (26 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
HEALTHCHECK NONE
ARG USER_NAME=default
ARG USER_HOME=/home/default
ARG USER_ID=1000
ARG USER_GECOS=Default
# hadolint ignore=DL3018
RUN apk --update --no-cache add bash curl gnupg \
&& rm -rf /var/cache/apk/* \
# create gpg directory to prevent keyboxd to automagically start, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
&& mkdir /root/.gnupg \
&& chmod 700 /root/.gnupg \
&& gpg --list-keys \
&& gpgconf --kill all
COPY pgp-verify-jar.sh /opt/pgp-verify-jar.sh
RUN adduser \
--home "${USER_HOME}" \
--uid "${USER_ID}" \
--gecos "${USER_GECOS}" \
--disabled-password \
"${USER_NAME}"
ENV HOME="${USER_HOME}"
USER "${USER_NAME}"
WORKDIR "${HOME}"
ENTRYPOINT ["/opt/pgp-verify-jar.sh"]
CMD []