depot/go/twitterchiver/archiver/Dockerfile

20 lines
431 B
Text
Raw Normal View History

2020-10-04 00:07:59 +00:00
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
# SPDX-License-Identifier: Apache-2.0
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"]