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