From 3d76069787b42dcc9735fda62174bc9fbccbd7b0 Mon Sep 17 00:00:00 2001 From: Maxime Deraspe Date: Wed, 5 Feb 2020 15:20:44 -0500 Subject: [PATCH] add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0893284 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM golang:1.13.7-buster + +RUN apt-get update \ + && curl -sL https://deb.nodesource.com/setup_12.x | bash - \ + && apt-get install -y nodejs + +RUN mkdir /data +VOLUME [ "/data" ] + +WORKDIR /go/src/app +COPY . . + +RUN go install -v ./... + +RUN cd web \ + && test -d node_modules && rm -fr node_modules \ + && npm install \ + && npm install -g gatsby \ + && gatsby build --prefix-paths + +CMD ["kaamer-db", "-server", "-d", "/data"]