From e25c7b50aad0cb713c974fcbd10542b8b6708336 Mon Sep 17 00:00:00 2001 From: haoxingxing Date: Wed, 27 Mar 2024 18:19:57 +0800 Subject: [PATCH] add docker support --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b78f2b0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:alpine AS build + +RUN apk add build-base bash git coreutils + +COPY . /go/src/github.com/mrhaoxx/OpenNG + +RUN cd /go/src/github.com/mrhaoxx/OpenNG && ./build.sh -o /NetGATE + +FROM alpine:latest AS runtime + +COPY --from=build /NetGATE /NetGATE + +ENTRYPOINT ["/NetGATE"]