123456789101112131415161718192021222324252627282930313233343536373839404142 |
- FROM golang:alpine as builder
- RUN apk update && apk add --no-cache git
- LABEL maintainer="Matthias Ladkau <matthias@ladkau.de>"
- WORKDIR /app
- COPY go.mod go.sum ./
- RUN go mod download
- COPY . .
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags="-w -s" ./server/dudeldu.go
- FROM scratch
- COPY --from=builder /app/dudeldu /dudeldu
- WORKDIR /data
- ENTRYPOINT ["../dudeldu"]
|