depot/go/twitterchiver/archiver/Dockerfile

17 lines
323 B
Text
Raw Normal View History

2020-10-03 23:17:35 +00:00
FROM golang:1.13-buster as build
RUN mkdir /go/src/app
WORKDIR /go/src/app
ADD go.mod go.sum /go/src/app
RUN go get -d -v ./...
ADD archiver /go/src/app/archiver
RUN go build -o /go/bin/app ./archiver
# Now copy it into our base image.
FROM gcr.io/distroless/base-debian10
COPY --from=build /go/bin/app /
CMD ["/app"]