aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-03-14 20:54:05 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-03-14 20:54:05 -0700
commit220d9e3d5639a0fecb10bc69d3f012ce885873ff (patch)
treee4e70f1fa6dc82470ab0bff035e827972a4c84f7 /Dockerfile
parentfc473f1d11a29bc8ae54d08322542245f6481da1 (diff)
Move Dockerfile to main repo
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..dbf299d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM golang:1.12-alpine3.9 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.9
+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"]