Add Containerfile
This commit is contained in:
parent
f640ccc43d
commit
9201b65084
1 changed files with 11 additions and 0 deletions
11
Containerfile
Normal file
11
Containerfile
Normal 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
|
Loading…
Reference in a new issue