This commit is contained in:
Emile Nijssen 2021-05-23 12:02:56 +02:00
parent 18b6ce7c78
commit 9d355f67d8
12 changed files with 60 additions and 37 deletions

View file

@ -8,6 +8,12 @@ RUN apt install -y wireguard iproute2 openresolv curl
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
# RUN wg-quick up wg0
EXPOSE 51820
ENTRYPOINT ["tail", "-f", "/dev/null"]
COPY src/ /app/
WORKDIR /app
RUN npm ci --production
EXPOSE 51820/udp
EXPOSE 80/tcp
ENV DEBUG=Server,WireGuard
CMD ["node", "server.js"]