mirror of https://github.com/wg-easy/wg-easy
3 changed files with 31 additions and 19 deletions
@ -1,21 +1,19 @@ |
|||||
FROM node:16-buster |
FROM node:16-alpine |
||||
|
|
||||
# Install Linux packages |
# Install Linux packages |
||||
RUN apt-get clean |
RUN apk add -U wireguard-tools |
||||
RUN echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/backports.list |
|
||||
RUN apt-get update |
|
||||
RUN apt-get install -y wireguard iproute2 openresolv curl |
|
||||
|
|
||||
# Install Node.js |
|
||||
# RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - |
|
||||
# RUN apt-get install -y nodejs |
|
||||
|
|
||||
|
# Copy Web UI |
||||
COPY src/ /app/ |
COPY src/ /app/ |
||||
WORKDIR /app |
WORKDIR /app |
||||
RUN npm ci --production |
RUN npm ci --production |
||||
|
|
||||
|
# Expose Ports |
||||
EXPOSE 51820/udp |
EXPOSE 51820/udp |
||||
EXPOSE 80/tcp |
EXPOSE 80/tcp |
||||
|
|
||||
|
# Set Environment |
||||
ENV DEBUG=Server,WireGuard |
ENV DEBUG=Server,WireGuard |
||||
|
|
||||
|
# Run Web UI |
||||
CMD ["node", "server.js"] |
CMD ["node", "server.js"] |
Loading…
Reference in new issue