Browse Source

change bcommentsranch

pull/537/head
Dofamin 3 years ago
parent
commit
193287e3a9
  1. 4
      .github/workflows/docker-image-build-publish.yml
  2. 2
      Dockerfile

4
.github/workflows/docker-image-build-publish.yml

@ -7,11 +7,11 @@ name: Docker
on:
push:
branches: [ main ]
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
branches: [ master ]
env:
# Use docker.io for Docker Hub if empty

2
Dockerfile

@ -20,6 +20,8 @@ RUN npm ci --production
# This saves a lot of disk space.
FROM docker.io/library/node:14-alpine@sha256:dc92f36e7cd917816fa2df041d4e9081453366381a00f40398d99e9392e78664
COPY --from=build_node_modules /app /app
# Adding Prometheus support
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

Loading…
Cancel
Save