Dockerfile fix
All checks were successful
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 23s

This commit is contained in:
2026-03-06 14:47:35 +03:00
parent 2e5e8a90fe
commit dabeabb646

View File

@@ -3,16 +3,15 @@ FROM debian:testing-slim
SHELL [ "/bin/sh", "-eux", "-c" ] SHELL [ "/bin/sh", "-eux", "-c" ]
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends yggdrasil wget ca-certificates unzip libcap2-bin gosu socat;\ && apt-get install -y --no-install-recommends yggdrasil wget ca-certificates libcap2-bin gosu socat jq;\
apt-get clean ;\ apt-get clean ;\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN PU_VERSION="$(wget --server-response https://github.com/ygguser/peers_updater/releases/latest 2>&1 \ RUN PEERS_UPDATER_URL="$(wget -qO- https://api.github.com/repos/ygguser/peers_updater/releases/latest \
| grep -E -m1 'Location: ' \ | jq -r '.assets[] | select(.name == "x86_64-unknown-linux-gnu.zip").browser_download_url')" ;\
| cut -d'/' -f8)" ;\ wget -qO- "$PEERS_UPDATER_URL" \
wget https://github.com/ygguser/peers_updater/releases/download/$PU_VERSION/x86_64-unknown-linux-gnu.zip ;\ | zcat \
unzip -d /usr/local/bin/ x86_64-unknown-linux-gnu.zip ;\ | install -m 755 /dev/stdin /usr/local/bin/peers_updater
rm x86_64-unknown-linux-gnu.zip
# Set file capability to run as regular user # Set file capability to run as regular user
RUN setcap cap_net_admin=eip /usr/sbin/yggdrasil RUN setcap cap_net_admin=eip /usr/sbin/yggdrasil