first commit

This commit is contained in:
GO
2021-09-03 09:52:42 +00:00
commit eef066b179
11 changed files with 477 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:1.16.5 as builder
WORKDIR /go-microservice/
COPY . .
RUN CGO_ENABLED=0 go build -o microservice /go-microservice/main.go
FROM alpine:latest
WORKDIR /go-microservice
COPY --from=builder /go-microservice/ /go-microservice/
EXPOSE 9090
CMD ./microservice