Initial commit
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:latest 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"]
|
Reference in New Issue
Block a user