mirror of https://github.com/certd/certd
chore: 1
parent
1c6740feff
commit
a092a1e843
|
@ -4,16 +4,16 @@ ENV NODE_ENV production
|
||||||
ENV MIDWAY_SERVER_ENV production
|
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
|
RUN npm install -g pnpm@8.17.5
|
||||||
#RUN npm install cross-env -g --registry=https://registry.npmmirror.com
|
#RUN npm install cross-env -g --registry=https://registry.npmmirror.com
|
||||||
#RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
#RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
||||||
#RUN pm2 install pm2-logrotate
|
#RUN pm2 install pm2-logrotate
|
||||||
ADD ./workspace/certd-server/ /app/
|
ADD ./workspace/certd-server/ /app/
|
||||||
RUN sed -i "s/workspace://g" "/app/package.json"
|
RUN sed -i "s/workspace://g" "/app/package.json"
|
||||||
RUN yarn install --registry=https://registry.npmmirror.com
|
#RUN yarn install --registry=https://registry.npmmirror.com
|
||||||
#RUN yarn install --production
|
#RUN yarn install --production
|
||||||
|
RUN pnpm install
|
||||||
RUN node ./before-build.js
|
RUN node ./before-build.js
|
||||||
RUN yarn install --registry=https://registry.npmmirror.com
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
#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