Skip to content

Commit

Permalink
deps: bump node
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jun 29, 2024
1 parent 0be83ab commit b349705
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:labs

FROM node:18-slim AS base
FROM node:22-slim AS base
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
4 changes: 0 additions & 4 deletions main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import env from './models/env';
});
const log = getLogger('Main');

if (!process.versions.node.startsWith('18.')) {
log.warn('当前正在使用的 Node.JS 版本为', process.versions.node, ',未经测试');
}

process.on('unhandledRejection', error => {
log.error('UnhandledException: ', error);
});
Expand Down

0 comments on commit b349705

Please sign in to comment.