wg-easy/Dockerfile
Emile Nijssen 9d355f67d8 wip
2021-05-23 12:02:56 +02:00

19 lines
366 B
Docker

FROM debian:bullseye
# Install Linux packages
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"]