2022-06-28 10:05:02 +03:00
|
|
|
FROM weejewel/wg-easy:7
|
2022-05-05 01:13:32 +03:00
|
|
|
|
|
|
|
# hadolint ignore=DL3022,DL3023
|
2023-06-30 22:21:14 +07:00
|
|
|
COPY --from=mindflavor/prometheus-wireguard-exporter:3.6.6 /usr/local/bin/prometheus_wireguard_exporter /usr/local/bin/
|
2022-05-05 01:13:32 +03:00
|
|
|
|
2023-06-30 22:20:49 +07:00
|
|
|
# shellcheck disable=SC2016
|
2022-05-05 01:13:32 +03:00
|
|
|
RUN apk add -U --no-cache \
|
2023-06-30 22:20:49 +07:00
|
|
|
wireguard-tools=1.0.20200102-r0 \
|
|
|
|
&& sed \
|
|
|
|
-i '1,/^\[Peer\]/{s//[Peer]\n# friendly_name = ${client.name}\n# (${clientId})/}' \
|
|
|
|
lib/WireGuard.js
|
2022-05-05 01:13:32 +03:00
|
|
|
|
|
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
|
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
|
|
|
|
EXPOSE 9586/tcp
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|
CMD ["/usr/bin/dumb-init", "node", "server.js"]
|