tachybase_todo/docker/hera/Dockerfile
sealday 2d991ba7cf 合并对main的所有修改
<!-- Note -->
<!-- This is a template for submitting a new feature.
Use the bug fix template if you're submitting a bug fix pull request by adding `template=bug_fix.md` to your pull request URL. -->

<!-- Describe the new feature or modification to an existing feature clearly and consciously. -->

<!-- Explain the reason for adding or modifying this feature. -->

<!-- Provide a technically detailed description of the key changes made. -->
- Frontend
- Backend

<!-- Provide any suggestions or recommendations for improvements in the testing plan. -->

<!-- Identify any potential risks or issues that may arise from the new feature or modification. -->

<!-- Including any screenshots of the new feature or modification. -->

Co-authored-by: sealday <sealday@gmail.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-authored-by: 吕延祥 <2256334253@qq.com>
Reviewed-on: daoyoucloud/nocobase#317
2024-03-10 04:06:04 +08:00

20 lines
592 B
Docker

# 设置基础镜像
FROM node:20.9.0 as builder
# 在容器中创建/app/nocobase目录
WORKDIR /app/nocobase
# 设置npm和pnpm的registry为https://registry.npmmirror.com
RUN npm config set registry https://registry.npmmirror.com && \
yarn config set registry https://registry.npmmirror.com
# 将当前目录中的所有文件复制到容器的/app/nocobase目录下
COPY . /app/nocobase
# 使用 pnpm 安装依赖
RUN yarn
RUN yarn build
# 使用 pm2-runtime 执行packages/core/app/lib/index.js文件
CMD ["yarn", "pm2-runtime", "packages/core/app/lib/index.js", "--", "start"]