mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore: node 16
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
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/
|
||||
WORKDIR /app/
|
||||
ENV NODE_ENV production
|
||||
RUN yarn install -P --registry=https://registry.npmmirror.com
|
||||
CMD ["node","./bootstrap.js"]
|
||||
CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||
|
||||
|
||||
|
||||
|
||||
7
docker/run/Dockerfile
Normal file
7
docker/run/Dockerfile
Normal file
@@ -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 版本
|
||||
services: # 要拉起的服务们
|
||||
certd:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||
container_name: certd # 容器名
|
||||
restart: unless-stopped # 重启
|
||||
|
||||
Reference in New Issue
Block a user