mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
adding signature check for PrivateBin archive
This commit is contained in:
parent
5b66db9dd6
commit
503f526328
@ -10,13 +10,19 @@ ENV GID=991 UID=991 \
|
|||||||
PHP_MIN_SPARE_SERVERS=1 \
|
PHP_MIN_SPARE_SERVERS=1 \
|
||||||
PHP_MAX_SPARE_SERVERS=6
|
PHP_MAX_SPARE_SERVERS=6
|
||||||
|
|
||||||
RUN BUILD_DEPS="tar libressl ca-certificates" \
|
RUN BUILD_DEPS="tar gnupg" \
|
||||||
&& apk -U upgrade && apk add $BUILD_DEPS \
|
&& apk -U upgrade && apk add $BUILD_DEPS \
|
||||||
&& mkdir privatebin && cd privatebin \
|
&& mkdir privatebin && cd privatebin \
|
||||||
&& wget -qO- https://github.com/PrivateBin/PrivateBin/archive/${PRIVATEBIN_VER}.tar.gz | tar xz --strip 1 \
|
&& export GNUPGHOME="$(mktemp -d)" \
|
||||||
|
&& gpg2 --list-public-keys || /bin/true \
|
||||||
|
&& wget -qO- https://privatebin.info/key/security.asc | gpg2 --import - \
|
||||||
|
&& wget -qO /privatebin.tar.gz.asc https://github.com/PrivateBin/PrivateBin/releases/download/${PRIVATEBIN_VER}/PrivateBin-${PRIVATEBIN_VER}.tar.gz.asc \
|
||||||
|
&& wget -qO /privatebin.tar.gz https://github.com/PrivateBin/PrivateBin/archive/${PRIVATEBIN_VER}.tar.gz \
|
||||||
|
&& gpg2 --verify /privatebin.tar.gz.asc \
|
||||||
|
&& tar -xzf /privatebin.tar.gz --strip 1 \
|
||||||
&& mv cfg/conf.sample.php cfg/conf.php \
|
&& mv cfg/conf.sample.php cfg/conf.php \
|
||||||
&& apk del $BUILD_DEPS \
|
&& apk del $BUILD_DEPS \
|
||||||
&& rm -f /var/cache/apk/*
|
&& rm -rf /var/cache/apk/* /privatebin.tar.gz* "${GNUPGHOME}"
|
||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user