peckertest/Dockerfile
Torjus Håkestad 2663403290
All checks were successful
ci/woodpecker/push/pr Pipeline was successful
ci/woodpecker/push/push Pipeline was successful
Change builder-image to alpine
2022-01-10 13:13:12 +01:00

10 lines
216 B
Docker

FROM golang:alpine AS builder
WORKDIR /src
COPY go.mod .
RUN go mod download
COPY . .
RUN go build -o peckertest main.go
FROM alpine:latest
COPY --from=builder /src/peckertest /bin/peckertest
CMD ["/bin/peckertest"]