upd dockerfile for q3rcon

This commit is contained in:
onyx-and-iris 2024-01-27 16:36:38 +00:00
parent fd4f873c9c
commit 660a1a9184

View File

@ -1,10 +1,12 @@
FROM golang:alpine FROM golang:alpine
# Move to /dist directory as the place for resulting binary folder
WORKDIR /dist WORKDIR /dist
# Copy binary from build to main folder COPY . .
COPY ./main .
# 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 # Command to run when starting the container
ENTRYPOINT [ "/dist/main" ] ENTRYPOINT [ "q3rcon-proxy" ]