from go-template

This commit is contained in:
John Ritsema
2023-06-01 22:04:03 -04:00
commit 2811fdd9cf
9 changed files with 132 additions and 0 deletions

10
Dockerfile Normal file
View 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"]