Skip to content

Commit 7917f7b

Browse files
docker: minor change to Docker setup
1 parent b427dde commit 7917f7b

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

Dockerfile

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ RUN apk add git bash
2929

3030
ENV GOSU_VERSION 1.16
3131
RUN set -eux; \
32-
\
33-
apk add --no-cache --virtual .gosu-deps \
34-
ca-certificates \
35-
dpkg \
36-
gnupg \
37-
; \
38-
\
39-
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
40-
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
41-
wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; \
42-
\
43-
# verify the signature
44-
export GNUPGHOME="$(mktemp -d)"; \
45-
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
46-
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
47-
command -v gpgconf && gpgconf --kill all || :; \
48-
rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; \
49-
\
50-
# clean up fetch dependencies
51-
apk del --no-network .gosu-deps; \
52-
\
53-
chmod +x /usr/local/bin/gosu; \
54-
# verify that the binary works
55-
gosu --version; \
56-
gosu nobody true
32+
\
33+
apk add --no-cache --virtual .gosu-deps \
34+
ca-certificates \
35+
dpkg \
36+
gnupg \
37+
; \
38+
\
39+
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
40+
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; \
41+
wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; \
42+
\
43+
# verify the signature
44+
export GNUPGHOME="$(mktemp -d)"; \
45+
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
46+
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
47+
command -v gpgconf && gpgconf --kill all || :; \
48+
rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; \
49+
\
50+
# clean up fetch dependencies
51+
apk del --no-network .gosu-deps; \
52+
\
53+
chmod +x /usr/local/bin/gosu; \
54+
# verify that the binary works
55+
gosu --version; \
56+
gosu nobody true
5757

5858

5959

@@ -68,9 +68,9 @@ RUN mkdir -p /home/user/src/main/resources
6868

6969
RUN mkdir -p /home/user/ground-truth/
7070
# permissions for calculon
71-
RUN chown 1015:user /home/user -R
71+
RUN chown user:user /home/user -R
7272
RUN chmod +x entrypoint.sh
7373
RUN chmod +x fix-perms.sh
7474
RUN chmod +x extract.sh
7575

76-
ENTRYPOINT ["./entrypoint.sh", "./extract.sh"]
76+
ENTRYPOINT ["./entrypoint.sh", "./extract.sh"]

0 commit comments

Comments
 (0)