Add Containerfile

This commit is contained in:
Scott Williams 2024-10-10 15:21:55 -07:00
parent f640ccc43d
commit 9201b65084

11
Containerfile Normal file
View file

@ -0,0 +1,11 @@
FROM docker.io/golang:alpine AS build
ENV GOBIN /go/bin
COPY . ./src
RUN cd ./src && go build && go install
FROM alpine:latest
COPY --from=build /go/bin/* /usr/bin
EXPOSE 8000
CMD /usr/bin/web-service-gin