From 7857a7f454102a70f9e8ff425061625058e7bd69 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sun, 13 Dec 2020 13:35:10 +0000 Subject: [PATCH] Update dockerfile with Node14 + widget support --- .dockerignore | 1 + Dockerfile | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index cbe23cf2..c56881a8 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ node_modules/ lib/ config.yml +public/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8a49849d..4a23f4ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,20 @@ # Stage 0: Build the thing -FROM node:12-alpine AS builder +FROM node:14-alpine AS builder COPY . /src WORKDIR /src -RUN npm install -RUN npm run build +# will also build +RUN yarn # Stage 1: The actual container FROM node:12-alpine COPY --from=builder /src/lib/ /bin/matrix-github/ +COPY --from=builder /src/public/ /bin/matrix-github/ COPY --from=builder /src/package*.json /bin/matrix-github/ WORKDIR /bin/matrix-github -RUN npm install --production +RUN yarn --production VOLUME /data EXPOSE 9993