forked from mirrors/amnezia-wg-easy
Merge remote-tracking branch 'pheiduck/main' into rebase-pheiduck
This commit is contained in:
commit
aa939d876c
29 changed files with 3466 additions and 680 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue