2021-05-23 20:28:22 +08:00
|
|
|
FROM node:16-alpine
|
2021-05-22 17:12:26 +08:00
|
|
|
|
|
|
|
# Install Linux packages
|
2021-05-23 20:28:22 +08:00
|
|
|
RUN apk add -U wireguard-tools
|
2021-05-22 17:12:26 +08:00
|
|
|
|
2021-05-23 20:28:22 +08:00
|
|
|
# Copy Web UI
|
2021-05-23 18:02:56 +08:00
|
|
|
COPY src/ /app/
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm ci --production
|
|
|
|
|
2021-05-23 20:28:22 +08:00
|
|
|
# Expose Ports
|
2021-05-23 18:02:56 +08:00
|
|
|
EXPOSE 51820/udp
|
|
|
|
EXPOSE 80/tcp
|
2021-05-23 20:28:22 +08:00
|
|
|
|
|
|
|
# Set Environment
|
2021-05-23 18:02:56 +08:00
|
|
|
ENV DEBUG=Server,WireGuard
|
2021-05-23 20:28:22 +08:00
|
|
|
|
|
|
|
# Run Web UI
|
2021-05-23 18:02:56 +08:00
|
|
|
CMD ["node", "server.js"]
|