Skip to content

Commit

Permalink
Use fork of matrix-bot-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Jan 27, 2025
1 parent 10e8a08 commit 9fd4005
Show file tree
Hide file tree
Showing 3 changed files with 988 additions and 1,399 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM node:18-slim AS builder
FROM node:18 AS builder

# because yarn insists on using SSH to fetch the git repository, even with `git+https://`...
# seriously, why?!
RUN git config --global url."https://github".insteadOf ssh://git@github && git config --global url."https://github.com/".insteadOf [email protected]:

COPY ./ /app/
WORKDIR /app
Expand All @@ -8,7 +12,10 @@ RUN yarn install
ENV NODE_ENV=production
RUN yarn build

FROM node:18-slim
FROM node:18

# see note in builder stage
RUN git config --global url."https://github".insteadOf ssh://git@github && git config --global url."https://github.com/".insteadOf [email protected]:

COPY --from=builder /app/lib /app/lib
COPY --from=builder /app/srv /app/srv
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"dependencies": {
"@tsconfig/node18": "^18.2.2",
"matrix-bot-sdk": "git+https://github.com/reivilibre/fork-matrix-bot-sdk#rei/fd25_dms-catch",
"await-lock": "^2.1.0",
"config": "^3.3.3",
"express": "^4.17.1",
Expand All @@ -33,7 +34,6 @@
"js-yaml": "^3.14.1",
"jsrsasign": "^10.1.4",
"liquidjs": "^9.19.0",
"matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk@^0.6.7-element.1",
"matrix-widget-api": "^1.6.0",
"moment": "^2.29.4",
"node-fetch": "^2.6.1",
Expand Down
Loading

0 comments on commit 9fd4005

Please sign in to comment.