Merge remote-tracking branch 'pheiduck/main' into rebase-pheiduck

This commit is contained in:
Peter Lewis 2023-12-21 14:25:54 +00:00
commit aa939d876c
No known key found for this signature in database
29 changed files with 3466 additions and 680 deletions

View file

@ -1,13 +1,24 @@
# There's an issue with node:20-alpine.
# Docker deployment is canceled after 25< minutes.
FROM docker.io/library/node:18-alpine AS build_node_modules
# Hide fund and update-notifier message
RUN npm config set -g fund false &&\
npm config set -g update-notifier false
# Copy Web UI
COPY src/ /app/
WORKDIR /app
RUN npm ci --production
RUN npm ci
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:18-alpine
# Hide fund and update-notifier message
RUN npm config set -g fund false &&\
npm config set -g update-notifier false
COPY --from=build_node_modules /app /app
# Move node_modules one directory up, so during development
@ -21,9 +32,9 @@ RUN mv /app/node_modules /node_modules
# Install Linux packages
RUN apk add -U --no-cache \
iptables \
wireguard-tools \
dumb-init
iptables \
wireguard-tools \
dumb-init
# Expose Ports
EXPOSE 51820/udp