mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Update dockerfile with Node14 + widget support
This commit is contained in:
parent
368962c627
commit
7857a7f454
@ -1,3 +1,4 @@
|
||||
node_modules/
|
||||
lib/
|
||||
config.yml
|
||||
public/
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user