Merge remote-tracking branch 'pheiduck/main' into rebase-pheiduck
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user