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.

20 lines
472 B

2 years ago
FROM debian as builder
RUN apt-get update && \
apt-get install -y git golang
WORKDIR /src/
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/
2 years ago
COPY index.html /
VOLUME /data
ENTRYPOINT ["/feed"]