mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-12-12 04:09:24 +08:00
20 lines
380 B
Docker
20 lines
380 B
Docker
FROM debian:bullseye
|
|
|
|
# Install Linux packages
|
|
RUN apt clean
|
|
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
|
|
|
|
COPY src/ /app/
|
|
WORKDIR /app
|
|
RUN npm ci --production
|
|
|
|
|
|
EXPOSE 51820/udp
|
|
EXPOSE 80/tcp
|
|
ENV DEBUG=Server,WireGuard
|
|
CMD ["node", "server.js"] |