Update Dockerfile
This commit is contained in:
parent
cb80bd4b6b
commit
73ec092eb2
1 changed files with 1 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine
|
||||||
|
|
||||||
RUN apk add --no-cache gcc libgo
|
RUN apk add --no-cache gcc libgo
|
||||||
|
|
||||||
|
@ -8,8 +8,4 @@ COPY . .
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
RUN go build -o app .
|
RUN go build -o app .
|
||||||
|
|
||||||
FROM scratch as production
|
|
||||||
|
|
||||||
WORKDIR /goshorly
|
|
||||||
COPY --from=builder /go/src/git.ucode.space/goshorly/app .
|
|
||||||
CMD ["./app"]
|
CMD ["./app"]
|
||||||
|
|
Loading…
Reference in a new issue