Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zorino committed Feb 5, 2020
1 parent 1be055c commit 3d76069
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 3d76069

Please sign in to comment.