From 9201b650843c25ab5b9d133549f70a6ffc5706df Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Thu, 10 Oct 2024 15:21:55 -0700 Subject: [PATCH] Add Containerfile --- Containerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..003e47b --- /dev/null +++ b/Containerfile @@ -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