mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
fix: stop building ssh2 native crypto in the docker image (#1644)
This commit is contained in:
1 parent
c8a907538e
commit
aa0b32a142
2 files changed
+5
-1
No files matched your search
@@ -21,6 +21,7 @@
|
|||||||
- Synced plugins signed only by a key the server sent are no longer turned on by themselves
|
- Synced plugins signed only by a key the server sent are no longer turned on by themselves
|
||||||
- Two connects to the same host at once could overwrite each other's connection
|
- Two connects to the same host at once could overwrite each other's connection
|
||||||
- Indonesian uses the same technical terms everywhere
|
- Indonesian uses the same technical terms everywhere
|
||||||
|
- The Docker server crashed and restarted every few hours in ssh2's native crypto on Node 24
|
||||||
|
|
||||||
## 26.10.1
|
## 26.10.1
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -74,12 +74,15 @@ COPY vendor ./vendor
|
|||||||
|
|
||||||
COPY scripts/patch-ssh2-agent.cjs ./scripts/
|
COPY scripts/patch-ssh2-agent.cjs ./scripts/
|
||||||
|
|
||||||
|
# ssh2's native crypto crashes Node 24 when a cipher is freed, so ssh2 uses
|
||||||
|
# OpenSSL instead (chacha20-poly1305 is then left out).
|
||||||
RUN npm ci --omit=dev --ignore-scripts && \
|
RUN npm ci --omit=dev --ignore-scripts && \
|
||||||
node scripts/patch-ssh2-agent.cjs && \
|
node scripts/patch-ssh2-agent.cjs && \
|
||||||
rm -rf node_modules/better-sqlite3/prebuilds && \
|
rm -rf node_modules/better-sqlite3/prebuilds && \
|
||||||
npm run build-release --prefix node_modules/better-sqlite3 && \
|
npm run build-release --prefix node_modules/better-sqlite3 && \
|
||||||
test -f node_modules/better-sqlite3/build/Release/better_sqlite3.node && \
|
test -f node_modules/better-sqlite3/build/Release/better_sqlite3.node && \
|
||||||
npm rebuild bcryptjs ssh2 && \
|
npm rebuild bcryptjs && \
|
||||||
|
rm -rf node_modules/ssh2/lib/protocol/crypto/build && \
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
# Stage 6: Final optimized image
|
# Stage 6: Final optimized image
|
||||||
|
|||||||
Reference in new issue
Block a user