peckertest/Dockerfile

10 lines
216 B
Docker
Raw Normal View History

2022-01-10 12:13:12 +00:00
FROM golang:alpine AS builder
2022-01-10 12:02:45 +00:00
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"]