From 660a1a91842e13fd1819ab81c0ed85a241307400 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 27 Jan 2024 16:36:38 +0000 Subject: [PATCH] upd dockerfile for q3rcon --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf607b2..495bfb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM golang:alpine -# Move to /dist directory as the place for resulting binary folder WORKDIR /dist -# Copy binary from build to main folder -COPY ./main . +COPY . . + +# build binary and place into /usr/local/bin +RUN go mod download && go mod verify +RUN go build -v -o /usr/local/bin/q3rcon-proxy ./cmd/q3rcon-proxy # Command to run when starting the container -ENTRYPOINT [ "/dist/main" ] \ No newline at end of file +ENTRYPOINT [ "q3rcon-proxy" ] \ No newline at end of file