mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-01-18 08:40:53 +00:00
upd dockerfile for q3rcon
This commit is contained in:
parent
fd4f873c9c
commit
660a1a9184
10
Dockerfile
10
Dockerfile
@ -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" ]
|
Loading…
Reference in New Issue
Block a user