pull/101/head
xiaojunnuo 2024-07-20 14:26:01 +08:00
parent d62ea41671
commit 153e98b593
3 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@ EXPOSE 7001
ENV NODE_ENV production
ENV MIDWAY_SERVER_ENV production
WORKDIR /app/
ENV node_sqlite3_binary_host_mirror https://registry.npmmirror.com/-/binary/sqlite3
#RUN npm install -g pnpm
#RUN npm install cross-env -g --registry=https://registry.npmmirror.com
#RUN npm install pm2 -g --registry=https://registry.npmmirror.com
@ -11,6 +12,7 @@ ADD ./workspace/certd-server/ /app/
RUN sed -i "s/workspace://g" "/app/package.json"
RUN yarn install --registry=https://registry.npmmirror.com
#RUN yarn install --production
RUN node ./before-build.js
RUN npm run build
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
CMD ["npm", "run","start"]

View File

@ -0,0 +1,6 @@
import http from 'axios';
import fs from 'fs';
//读取 packages/core/pipline/package.json的版本号
import { default as packageJson } from './tsconfig.json' assert { type: 'json' };
delete packageJson.references;
fs.writeFileSync('./tsconfig.json', JSON.stringify(packageJson, null, 2));

View File

@ -0,0 +1 @@
1