2019-09-22 19:16:59 +02:00
|
|
|
FROM golang:1.13-alpine3.10 as build
|
2019-03-15 04:54:05 +01:00
|
|
|
ENV GO111MODULE=on
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
RUN apk add --no-cache --update build-base git
|
|
|
|
COPY . .
|
|
|
|
RUN make linux-__MINIFLUX_ARCH__ VERSION=__MINIFLUX_VERSION__
|
|
|
|
|
2019-11-27 07:22:55 +01:00
|
|
|
FROM __BASEIMAGE_ARCH__/alpine:3.10.3
|
2019-03-15 04:54:05 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
ENV LISTEN_ADDR 0.0.0.0:8080
|
|
|
|
RUN apk --no-cache add ca-certificates tzdata
|
|
|
|
COPY --from=build /go/src/app/miniflux-linux-__MINIFLUX_ARCH__ /usr/bin/miniflux
|
|
|
|
USER nobody
|
|
|
|
CMD ["/usr/bin/miniflux"]
|