diff --git a/Dockerfile b/Dockerfile index de1b453..89f0c08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:14-alpine # Install Linux packages -RUN apk add -U wireguard-tools +RUN apk add -U --no-cache wireguard-tools dumb-init # Copy Web UI COPY src/ /app/ @@ -16,4 +16,4 @@ EXPOSE 51821/tcp ENV DEBUG=Server,WireGuard # Run Web UI -CMD ["node", "server.js"] +CMD ["/usr/bin/dumb-init", "node", "server.js"] diff --git a/README.md b/README.md index d75733f..0a1655b 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ You have found the easiest way to install & manage WireGuard on any Linux host! ## Requirements * A host with a kernel that supports WireGuard (all modern kernels). +* A host with Docker installed. ## Installation @@ -39,6 +40,12 @@ $ sudo usermod -aG docker $(whoami) $ bash ``` +You might need to install docker-compose separately. For example, on a Raspberry Pi: + +```bash +sudo apt-get install docker-compose +``` + ### 2. Configure WireGuard Run these commands to prepare and configure WireGuard.