Smaller docker image
This commit is contained in:
parent
10e06e385c
commit
3e1e2e7202
13
Dockerfile
13
Dockerfile
|
@ -1,6 +1,11 @@
|
||||||
FROM golang:1.13
|
FROM golang:1.13 as builder
|
||||||
|
|
||||||
ADD . /workspace/cloudlog
|
ADD . /app/
|
||||||
WORKDIR /workspace/cloudlog
|
WORKDIR /app/
|
||||||
RUN make build
|
RUN make build
|
||||||
ENTRYPOINT ["/workspace/cloudlog/cloudlog"]
|
|
||||||
|
FROM alpine:latest
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
|
WORKDIR /root/
|
||||||
|
COPY --from=builder /app/cloudlog /usr/local/bin/
|
||||||
|
ENTRYPOINT ["cloudlog"]
|
Loading…
Reference in New Issue