updated Dockerfile

This commit is contained in:
Marvin Zhang
2022-06-03 19:26:28 +08:00
parent 7f94488d00
commit 602ef0cfae
5 changed files with 18 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.16 AS build
WORKDIR /go/src/app
COPY . .
@@ -9,3 +9,7 @@ ENV GO111MODULE on
RUN go mod tidy \
&& go install -v ./...
FROM alpine:3.14
# copy files
COPY --from=backend-build /go/bin/crawlab /go/bin/crawlab