mirror of https://github.com/certd/certd
chore: node 16
parent
db8043ecb6
commit
ddf98ff593
|
@ -1,9 +1,11 @@
|
||||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:16-alpine
|
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:16-alpine
|
||||||
RUN npm install -g cross-env --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
|
||||||
ADD ./workspace/certd-server/ /app/
|
ADD ./workspace/certd-server/ /app/
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
ENV NODE_ENV production
|
||||||
RUN yarn install -P --registry=https://registry.npmmirror.com
|
RUN yarn install -P --registry=https://registry.npmmirror.com
|
||||||
CMD ["node","./bootstrap.js"]
|
CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||||
|
RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
||||||
|
CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
version: '3.3' # 指定docker-compose 版本
|
version: '3.3' # 指定docker-compose 版本
|
||||||
services: # 要拉起的服务们
|
services: # 要拉起的服务们
|
||||||
certd:
|
certd:
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Dockerfile
|
||||||
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||||
container_name: certd # 容器名
|
container_name: certd # 容器名
|
||||||
restart: unless-stopped # 重启
|
restart: unless-stopped # 重启
|
||||||
|
|
Loading…
Reference in New Issue