You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
472 B

FROM debian as builder
RUN apt-get update && \
apt-get install -y git golang
COPY *.go go.mod go.sum /src/
RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -o feed
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /src/feed /feed
COPY static/* /static/
COPY index.html /
VOLUME /data
ENTRYPOINT ["/feed"]