from go-template
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.19 AS build
|
||||
WORKDIR /go/src/app
|
||||
COPY . .
|
||||
ENV CGO_ENABLED=0 GOOS=linux
|
||||
RUN go build -v -o app .
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
COPY --from=build /go/src/app/app .
|
||||
CMD ["./app"]
|
||||
Reference in New Issue
Block a user