mirror of https://github.com/certd/certd
chore: 1
parent
17ef7b8b9e
commit
0ef7b036dd
|
@ -1,6 +1,5 @@
|
||||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine
|
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine
|
||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
ENV MIDWAY_SERVER_ENV production
|
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
ENV node_sqlite3_binary_host_mirror https://registry.npmmirror.com/-/binary/sqlite3
|
ENV node_sqlite3_binary_host_mirror https://registry.npmmirror.com/-/binary/sqlite3
|
||||||
RUN npm install -g pnpm@8.15.7 --registry=https://registry.npmmirror.com
|
RUN npm install -g pnpm@8.15.7 --registry=https://registry.npmmirror.com
|
||||||
|
@ -17,6 +16,7 @@ RUN pnpm install
|
||||||
RUN node ./before-build.js
|
RUN node ./before-build.js
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
ENV MIDWAY_SERVER_ENV production
|
||||||
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||||
CMD ["npm", "run","start"]
|
CMD ["npm", "run","start"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue