| FROM busybox:latest | |
| RUN adduser -D -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| RUN wget https://github.com/Kianmhz/GooseRelayVPN/releases/latest/download/GooseRelayVPN-server-v1.6.0-linux-amd64.tar.gz && \ | |
| tar -xzf GooseRelayVPN-server-v1.6.0-linux-amd64.tar.gz --strip-components 1 | |
| RUN --mount=type=secret,id=SERVER_CONFIG,mode=0444,required=true \ | |
| cp /run/secrets/SERVER_CONFIG server_config.json | |
| CMD ["./goose-server"] | |