Skip to content

Commit 7a526ac

Browse files
committed
up npm libs and in ws server
1 parent 284a35c commit 7a526ac

3 files changed

Lines changed: 238 additions & 1317 deletions

File tree

autoadmin-ws-server/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ FROM node:22-alpine AS builder
22

33
WORKDIR /app
44

5-
COPY package.json ./
6-
RUN npm install
5+
COPY package.json yarn.lock ./
6+
RUN yarn install --frozen-lockfile
77

88
COPY tsconfig.json ./
99
COPY src ./src
1010

11-
RUN npm run build
11+
RUN yarn build
1212

1313
FROM node:22-alpine
1414

@@ -17,8 +17,8 @@ WORKDIR /app
1717
RUN addgroup -g 1001 -S nodejs && \
1818
adduser -S nodejs -u 1001
1919

20-
COPY package.json ./
21-
RUN npm install --omit=dev && npm cache clean --force
20+
COPY package.json yarn.lock ./
21+
RUN yarn install --frozen-lockfile --production && yarn cache clean
2222

2323
COPY --from=builder /app/dist ./dist
2424

autoadmin-ws-server/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
"lint:fix": "biome check --write src/"
1212
},
1313
"dependencies": {
14-
"@hono/node-server": "^1.13.7",
15-
"hono": "^4.6.14",
16-
"jsonwebtoken": "^9.0.2",
17-
"lru-cache": "^11.0.2",
18-
"nanoid": "^5.0.9",
19-
"pino": "^9.5.0",
20-
"ws": "^8.18.0",
21-
"zod": "^3.24.1"
14+
"@hono/node-server": "^1.19.9",
15+
"hono": "^4.11.7",
16+
"jsonwebtoken": "^9.0.3",
17+
"lru-cache": "^11.2.5",
18+
"nanoid": "^5.1.6",
19+
"pino": "^10.3.0",
20+
"ws": "^8.19.0",
21+
"zod": "^4.3.6"
2222
},
2323
"devDependencies": {
24-
"@biomejs/biome": "2.3.8",
25-
"@types/jsonwebtoken": "^9.0.7",
24+
"@biomejs/biome": "2.3.13",
25+
"@types/jsonwebtoken": "^9.0.10",
2626
"@types/node": "^22.10.2",
27-
"@types/ws": "^8.5.13",
28-
"tsx": "^4.19.2",
29-
"typescript": "^5.7.2"
27+
"@types/ws": "^8.18.1",
28+
"tsx": "^4.21.0",
29+
"typescript": "^5.9.3"
3030
}
3131
}

0 commit comments

Comments
 (0)