mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-16 23:49:24 +08:00
20 lines
281 B
Docker
20 lines
281 B
Docker
FROM node:14-alpine
|
|
|
|
# Install Linux packages
|
|
RUN apk add -U wireguard-tools
|
|
|
|
# Copy Web UI
|
|
COPY src/ /app/
|
|
WORKDIR /app
|
|
RUN npm ci --production
|
|
|
|
# Expose Ports
|
|
EXPOSE 51820/udp
|
|
EXPOSE 51821/tcp
|
|
|
|
# Set Environment
|
|
ENV DEBUG=Server,WireGuard
|
|
|
|
# Run Web UI
|
|
CMD ["node", "server.js"]
|