From 7cb3b27f81a6629fd82aa2a921ad96a04db270ad Mon Sep 17 00:00:00 2001 From: xbdm Date: Sat, 3 Jun 2023 03:53:20 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c50f31..ac8d411 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM node:16-alpine AS build +FROM node:16-alpine +RUN apk add git +RUN git clone https://github.com/Metastem/wikiless.git /wikiless WORKDIR /wikiless -COPY . /wikiless +RUN apk add redis RUN npm install --no-optional - -FROM gcr.io/distroless/nodejs:16 -COPY --from=build /wikiless /wikiless -WORKDIR /wikiless -COPY config.js.template config.js -CMD ["src/wikiless.js"] \ No newline at end of file +CMD npm start