616
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
Dockerfile
|
|
@ -20,6 +20,7 @@ RUN npm ci --production |
|
|
# This saves a lot of disk space. |
|
|
# This saves a lot of disk space. |
|
|
FROM docker.io/library/node:14-alpine@sha256:dc92f36e7cd917816fa2df041d4e9081453366381a00f40398d99e9392e78664 |
|
|
FROM docker.io/library/node:14-alpine@sha256:dc92f36e7cd917816fa2df041d4e9081453366381a00f40398d99e9392e78664 |
|
|
COPY --from=build_node_modules /app /app |
|
|
COPY --from=build_node_modules /app /app |
|
|
|
|
|
COPY --from=mindflavor/prometheus-wireguard-exporter:multi-arch-dockerfile /usr/local/bin/prometheus_wireguard_exporter /app |
|
|
|
|
|
|
|
|
# Move node_modules one directory up, so during development |
|
|
# Move node_modules one directory up, so during development |
|
|
# we don't have to mount it in a volume. |
|
|
# we don't have to mount it in a volume. |
|
|
@ -41,10 +42,11 @@ RUN apk add -U --no-cache \ |
|
|
# Expose Ports |
|
|
# Expose Ports |
|
|
EXPOSE 51820/udp |
|
|
EXPOSE 51820/udp |
|
|
EXPOSE 51821/tcp |
|
|
EXPOSE 51821/tcp |
|
|
|
|
|
EXPOSE 51822/tcp |
|
|
|
|
|
|
|
|
# Set Environment |
|
|
# Set Environment |
|
|
ENV DEBUG=Server,WireGuard |
|
|
ENV DEBUG=Server,WireGuard |
|
|
|
|
|
|
|
|
# Run Web UI |
|
|
# Run Web UI |
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
CMD ["/usr/bin/dumb-init", "node", "server.js"] |
|
|
CMD ["/usr/bin/dumb-init", "./prometheus_wireguard_exporter -r true -n true -p 51822", "&&", "node", "server.js"] |
|
|
|