2022-03-16 01:39:16 -04:00
|
|
|
FROM golang:latest AS build
|
2023-06-22 23:54:30 -04:00
|
|
|
ENV CGO_ENABLED=0
|
2020-10-18 18:00:10 -04:00
|
|
|
ADD . /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
RUN go build \
|
|
|
|
-o miniflux \
|
2023-08-10 22:46:45 -04:00
|
|
|
-ldflags="-s -w -X 'miniflux.app/v2/internal/version.Version=`git describe --tags --abbrev=0`' -X 'miniflux.app/v2/internal/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/v2/internal/version.BuildDate=`date +%FT%T%z`'" \
|
2020-10-18 18:00:10 -04:00
|
|
|
main.go
|
|
|
|
|
2024-02-04 19:11:53 -05:00
|
|
|
FROM gcr.io/distroless/base:nonroot
|
2021-02-13 19:27:23 -05:00
|
|
|
|
|
|
|
LABEL org.opencontainers.image.title=Miniflux
|
|
|
|
LABEL org.opencontainers.image.description="Miniflux is a minimalist and opinionated feed reader"
|
|
|
|
LABEL org.opencontainers.image.vendor="Frédéric Guillot"
|
|
|
|
LABEL org.opencontainers.image.licenses=Apache-2.0
|
|
|
|
LABEL org.opencontainers.image.url=https://miniflux.app
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/miniflux/v2
|
|
|
|
LABEL org.opencontainers.image.documentation=https://miniflux.app/docs/
|
|
|
|
|
2020-11-04 12:48:24 -05:00
|
|
|
EXPOSE 8080
|
2020-10-18 18:00:10 -04:00
|
|
|
ENV LISTEN_ADDR 0.0.0.0:8080
|
|
|
|
COPY --from=build /go/src/app/miniflux /usr/bin/miniflux
|
|
|
|
CMD ["/usr/bin/miniflux"]
|