diff --git a/Dockerfile b/Dockerfile index 975cfad..ec58930 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ -FROM docker.io/golang:1.23 as build -COPY src/ . -RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app +ARG VER=1.23 + +FROM "docker.io/golang:$VER" as build +WORKDIR /app/ +ARG VER +COPY main.go . +RUN printf "module yw5n\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app FROM scratch COPY --from=build /app /app diff --git a/html/resume.html b/html/resume.html index e42e9c1..836a7a7 100644 --- a/html/resume.html +++ b/html/resume.html @@ -40,7 +40,7 @@