Switch to ghcr.io/wg-easy/wg-easy image (#22)

* Switch to ghcr.io/wg-easy/wg-easy image

* Fix with Dockerfile build

* Fix hadolint checks
This commit is contained in:
Pavel Popov 2024-01-05 11:23:41 +07:00 committed by GitHub
parent 6879011856
commit 92d4babff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,10 @@
FROM weejewel/wg-easy:7 FROM ghcr.io/wg-easy/wg-easy:9
# hadolint ignore=DL3022,DL3023 # hadolint ignore=DL3022,DL3023
COPY --from=mindflavor/prometheus-wireguard-exporter:3.6.6 /usr/local/bin/prometheus_wireguard_exporter /usr/local/bin/ COPY --from=mindflavor/prometheus-wireguard-exporter:3.6.6 /usr/local/bin/prometheus_wireguard_exporter /usr/local/bin/
# shellcheck disable=SC2016 # hadolint ignore=SC2016
RUN apk add -U --no-cache \ RUN sed \
wireguard-tools=1.0.20200102-r0 \
&& sed \
-i '1,/^\[Peer\]/{s//[Peer]\n# friendly_name = ${client.name}\n# (${clientId})/}' \ -i '1,/^\[Peer\]/{s//[Peer]\n# friendly_name = ${client.name}\n# (${clientId})/}' \
lib/WireGuard.js lib/WireGuard.js