www-jmbit-de/Dockerfile

12 lines
283 B
Docker
Raw Normal View History

FROM golang:alpine AS builder
RUN apk update && apk add --no-cache git
WORKDIR $GOPATH/src/www-jmbit-de
COPY . .
RUN go get -d -v
2024-01-12 10:51:51 +01:00
RUN go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/www
FROM scratch
COPY --from=builder /go/bin/www /go/bin/www
ENTRYPOINT ["/go/bin/www"]