2024-01-05 05:23:41 +01:00
|
|
|
FROM ghcr.io/wg-easy/wg-easy:9
|
2022-05-05 00:13:32 +02:00
|
|
|
|
|
|
|
# hadolint ignore=DL3022,DL3023
|
2023-06-30 17:21:14 +02:00
|
|
|
COPY --from=mindflavor/prometheus-wireguard-exporter:3.6.6 /usr/local/bin/prometheus_wireguard_exporter /usr/local/bin/
|
2022-05-05 00:13:32 +02:00
|
|
|
|
2024-01-05 05:23:41 +01:00
|
|
|
# hadolint ignore=SC2016
|
|
|
|
RUN sed \
|
2023-06-30 17:20:49 +02:00
|
|
|
-i '1,/^\[Peer\]/{s//[Peer]\n# friendly_name = ${client.name}\n# (${clientId})/}' \
|
|
|
|
lib/WireGuard.js
|
2022-05-05 00:13:32 +02: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"]
|