This commit is contained in:
parent
8eacf95dcb
commit
25b1d70b89
@ -1,7 +1,7 @@
|
||||
ARG VER=1.23
|
||||
|
||||
FROM "docker.io/golang:$VER" as build
|
||||
WORKDIR /app/
|
||||
WORKDIR /build/
|
||||
ARG VER
|
||||
COPY main.go .
|
||||
RUN printf "module yw5n\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
|
||||
|
Loading…
Reference in New Issue
Block a user