11
0
Files
goredirect/Dockerfile
rasmus 81240636e2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update go
2025-05-23 11:13:03 +03:00

12 lines
293 B
Docker

FROM golang:1.24 AS build
WORKDIR /go/src/git.k-space.ee/k-space/goredirect
COPY go.mod go.sum ./
RUN go mod download
COPY main.go .
RUN go build -ldflags "-linkmode 'external' -extldflags '-static'" -o /go/server .
FROM scratch
WORKDIR /
COPY --from=build /go/server /server
CMD ["/server"]