Update dockerfile with Node14 + widget support

This commit is contained in:
Will Hunt 2020-12-13 13:35:10 +00:00
parent 368962c627
commit 7857a7f454
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
node_modules/
lib/
config.yml
public/

View File

@ -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