aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
blob: 439ef8f21f4afcf1df674331c359d771f3283b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM golang:1.13-alpine3.10 as build
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__

FROM __BASEIMAGE_ARCH__/alpine:3.10.1
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"]