fix: add local files in Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2a73023dca
commit
91e76b6d2b
@ -4,6 +4,10 @@ ENV CGO_ENABLED=0
|
||||
ENV GOOS="linux"
|
||||
ENV GOARCH="amd64"
|
||||
|
||||
ADD ./ /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
RUN go build -ldflags="-s -w" -tags timetzdata -o app main.go
|
||||
|
||||
@ -12,7 +16,7 @@ FROM scratch as production
|
||||
ENV TZ="Asia/Shanghai"
|
||||
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /app .
|
||||
COPY --from=builder /src/app .
|
||||
|
||||
|
||||
CMD ["./app"]
|
Loading…
x
Reference in New Issue
Block a user