FROM alpine:3.15.3
MAINTAINER l.hao.2012@qq.com
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add nodejs && apk add npm
RUN npm config set unsafe-perm true && npm install pm2 -g
ENV NODE_ENV=pro
ADD . /app/
WORKDIR /app
EXPOSE 3820
CMD ["pm2-runtime","start","bin/www"]
kubernets发布koa2镜像
最新推荐文章于 2024-09-09 11:36:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)