Replace binary build with a Docker build
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM golang:1.14-alpine
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go build -o wesher .
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=0 /app/wesher /wesher
|
||||
ENTRYPOINT ["/wesher"]
|
Reference in New Issue
Block a user