mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore: build 1.33.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:20-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /workspace/
|
||||
COPY . /workspace/
|
||||
# armv7 目前只能用node18, pnpm9不支持node18,所以pnpm只能用8.15.7版本
|
||||
@@ -10,7 +10,7 @@ RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
|
||||
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
||||
|
||||
|
||||
FROM node:20-alpine
|
||||
FROM node:22-alpine
|
||||
EXPOSE 7001
|
||||
EXPOSE 7002
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
import fs from 'fs';
|
||||
//删除references
|
||||
import { default as packageJson } from './tsconfig.json' assert { type: 'json' };
|
||||
delete packageJson.references;
|
||||
fs.writeFileSync('./tsconfig.json', JSON.stringify(packageJson, null, 2));
|
||||
|
||||
//瘦身
|
||||
const filePath = './node_modules/typeorm/platform/PlatformTools.js';
|
||||
const find = `const cli_highlight_1 = require("cli-highlight");`;
|
||||
|
||||
Reference in New Issue
Block a user