mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-01-18 08:40:53 +00:00
upd dockerfile
This commit is contained in:
parent
561b1ca654
commit
88c90f1447
14
Dockerfile
14
Dockerfile
@ -1,12 +1,14 @@
|
|||||||
FROM golang:alpine
|
FROM golang:1.21
|
||||||
|
|
||||||
WORKDIR /dist
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY . .
|
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
||||||
|
COPY go.mod go.sum ./
|
||||||
# build binary and place into /usr/local/bin
|
|
||||||
RUN go mod download && go mod verify
|
RUN go mod download && go mod verify
|
||||||
RUN go build -v -o /usr/local/bin/q3rcon-proxy ./cmd/q3rcon-proxy
|
|
||||||
|
# build binary and place into /usr/local/bin/
|
||||||
|
COPY . .
|
||||||
|
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 [ "q3rcon-proxy" ]
|
ENTRYPOINT [ "q3rcon-proxy" ]
|
Loading…
Reference in New Issue
Block a user