Dockerfile 439 B

1234567891011121314
  1. FROM golang:1.13-alpine3.10 as build
  2. ENV GO111MODULE=on
  3. WORKDIR /go/src/app
  4. RUN apk add --no-cache --update build-base git
  5. COPY . .
  6. RUN make linux-__MINIFLUX_ARCH__ VERSION=__MINIFLUX_VERSION__
  7. FROM __BASEIMAGE_ARCH__/alpine:3.10.1
  8. EXPOSE 8080
  9. ENV LISTEN_ADDR 0.0.0.0:8080
  10. RUN apk --no-cache add ca-certificates tzdata
  11. COPY --from=build /go/src/app/miniflux-linux-__MINIFLUX_ARCH__ /usr/bin/miniflux
  12. USER nobody
  13. CMD ["/usr/bin/miniflux"]