This commit is contained in:
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"]