File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 46
46
ARG FROM
47
47
FROM ${FROM} AS main
48
48
49
+ ARG NGINX_KEYRING_SHA256_SUM=7d3d5a7adf37e17d6882e2f6f55324b9a8f978ef3c99c50fe801af67c9847c91
49
50
COPY docker/unit.list /etc/apt/sources.list.d/unit.list
50
- ADD --chmod=444 --chown=0:0 https://unit.nginx.org/keys/nginx-keyring.gpg /usr/share/keyrings/nginx-keyring.gpg
51
51
RUN export DEBIAN_FRONTEND=noninteractive \
52
+ && curl -fsSL https://unit.nginx.org/keys/nginx-keyring.gpg -o /usr/share/keyrings/nginx-keyring.gpg \
53
+ && echo "Verifying integrity of nginx-keyring.gpg ..." \
54
+ && echo "${NGINX_KEYRING_SHA256_SUM} /usr/share/keyrings/nginx-keyring.gpg" | sha256sum -c -\
55
+ || (echo "Error: checksum verification of nginx-keyring.gpg failed!" && exit 1) \
56
+ && chmod 444 /usr/share/keyrings/nginx-keyring.gpg \
57
+ && chown 0:0 /usr/share/keyrings/nginx-keyring.gpg \
52
58
&& apt-get update -qq \
53
59
&& apt-get upgrade \
54
60
--yes -qq --no-install-recommends \
You can’t perform that action at this time.
0 commit comments