File size: 312 Bytes
e5043e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 使用Node.js基础镜像
FROM node:alpine
# 设置大陆时区
ENV TZ Asia/Shanghai
# 设置工作目录
WORKDIR /XxxX
# 安装主程序
COPY . .
# 安装依赖
RUN npm install -g pnpm
RUN pnpm install
# 赋予权限/归递
RUN chmod -R 777 /tmp
RUN chmod -R 777 /XxxX
# 启动!
CMD ["node", "app.js"] |