From 36231cad7f0ada88ce90e41a90571d3b49569b4d Mon Sep 17 00:00:00 2001 From: Paul Voss Date: Sun, 12 Feb 2023 12:16:10 +0100 Subject: [PATCH] Build docker image from local source repo --- .dockerignore | 2 ++ Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..80bf43b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git* +docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 55e0164..58b168c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM node:16-alpine -RUN apk add git -RUN git clone https://github.com/Metastem/wikiless.git WORKDIR /wikiless +COPY . /wikiless RUN npm install --no-optional COPY config.js.template config.js CMD npm start