bb/Dockerfile
Ryan Cavicchioni a1d612abc0
Some checks failed
continuous-integration/drone/push Build is failing
Add time zone database to container
2022-09-06 00:02:04 -05:00

12 lines
341 B
Docker

FROM golang:latest AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build ./cmd/bb
FROM scratch AS bin
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /src/bb /
ADD https://raw.githubusercontent.com/golang/go/master/lib/time/zoneinfo.zip /zoneinfo.zip
ENV ZONEINFO /zoneinfo.zip
ENTRYPOINT ["/bb"]