194f517be8
- Specify Docker registry explicitly (e.g., Podman does not use `docker.io` by default) - Use `make miniflux` instead of duplicating `go build` arguments (this leverages Go's PIE build mode) - Enable cgo to fix ARM containers (we need to make sure to use the same OS version for both container stages to avoid libc issues)
19 lines
727 B
Docker
19 lines
727 B
Docker
FROM docker.io/library/golang:bookworm AS build
|
|
ADD . /go/src/app
|
|
WORKDIR /go/src/app
|
|
RUN make miniflux
|
|
|
|
FROM gcr.io/distroless/base-debian12:nonroot
|
|
|
|
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/
|
|
|
|
EXPOSE 8080
|
|
ENV LISTEN_ADDR 0.0.0.0:8080
|
|
COPY --from=build /go/src/app/miniflux /usr/bin/miniflux
|
|
CMD ["/usr/bin/miniflux"]
|