wg-easy/Dockerfile

20 lines
380 B
Docker
Raw Normal View History

2021-05-22 17:12:26 +08:00
FROM debian:bullseye
# Install Linux packages
2021-05-23 18:31:07 +08:00
RUN apt clean
2021-05-22 17:12:26 +08:00
RUN apt update
RUN apt 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
2021-05-23 18:02:56 +08:00
COPY src/ /app/
WORKDIR /app
RUN npm ci --production
EXPOSE 51820/udp
EXPOSE 80/tcp
ENV DEBUG=Server,WireGuard
CMD ["node", "server.js"]