14 Star 0 Fork 28

openEuler/QARobot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 579 Bytes
一键复制 编辑 原始数据 按行查看 历史
wkl505997900 提交于 2023-08-14 18:39 . uodate fix
FROM node:12.22.11-alpine as Builder
RUN mkdir -p /home/openeuler/QARobot
WORKDIR /home/openeuler/QARobot
COPY . /home/openeuler/QARobot
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
RUN npm run build
FROM nginx:1.21.5
RUN sed -i 's/PASS_MAX_DAYS.*/PASS_MAX_DAYS 0/' /etc/login.defs
RUN mkdir -p /opt/QARobot
COPY --from=Builder /home/openeuler/QARobot/dist /opt/QARobot
RUN chmod -R 755 /opt/QARobot
COPY ./deploy/qarobot.conf /etc/nginx/conf.d/
ENV RUN_USER nginx
ENV RUN_GROUP nginx
EXPOSE 8080
ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/QARobot.git
[email protected]:openeuler/QARobot.git
openeuler
QARobot
QARobot
master

搜索帮助