wg-easy/Dockerfile

21 lines
502 B
Docker
Raw Normal View History

2021-05-23 19:36:26 +08:00
FROM node:16-buster
2021-05-22 17:12:26 +08:00
# Install Linux packages
2021-05-23 18:32:28 +08:00
RUN apt-get clean
2021-05-23 19:36:26 +08:00
RUN echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/backports.list
2021-05-23 18:32:28 +08:00
RUN apt-get update
RUN apt-get install -y wireguard iproute2 openresolv curl
2021-05-22 17:12:26 +08:00
# Install Node.js
2021-05-23 19:36:26 +08:00
# RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
# RUN apt-get install -y nodejs
2021-05-22 17:12:26 +08:00
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"]