1 Star 0 Fork 10

jifang/euler-copilot-witchaind-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 2.19 KB
一键复制 编辑 原始数据 按行查看 历史
ObjectNotFound 提交于 2025-04-25 01:25 +08:00 . 更新代码
FROM node:18.18.2-alpine
WORKDIR /opt/data_chain_web
RUN mkdir -p /opt/data_chain_web
COPY . /opt/data_chain_web
RUN npm install pnpm -g --registry=https://registry.npmmirror.com && \
pnpm install --registry=https://registry.npmmirror.com && \
pnpm run build
FROM hub.oepkgs.net/openeuler/openeuler:22.03-lts-sp4
ENV TZ Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
RUN sed -i 's|repo.openeuler.org|mirrors.nju.edu.cn/openeuler|g' /etc/yum.repos.d/openEuler.repo && \
sed -i '/metalink/d' /etc/yum.repos.d/openEuler.repo && \
sed -i '/metadata_expire/d' /etc/yum.repos.d/openEuler.repo && \
yum update -y && \
yum install -y nginx shadow-utils passwd gettext && \
yum clean all && \
groupadd -g 1001 eulercopilot && \
useradd -m -u 1001 -g eulercopilot -s /sbin/nologin eulercopilot && \
passwd -l eulercopilot && \
mkdir -p /usr/share/nginx/html/witchaind
COPY --from=0 /opt/data_chain_web/dist /usr/share/nginx/html/witchaind/
COPY --from=0 /opt/data_chain_web/public /usr/share/nginx/html/witchaind/
COPY --from=0 /opt/data_chain_web/deploy/prod/nginx.conf.tmpl /home/eulercopilot/nginx.conf.tmpl
COPY --from=0 /opt/data_chain_web/deploy/prod/start.sh /home/eulercopilot/start.sh
RUN sed -i 's/umask 002/umask 027/g' /etc/bashrc && \
sed -i 's/umask 022/umask 027/g' /etc/bashrc && \
chown -R eulercopilot:eulercopilot /usr/share/nginx && \
chown -R eulercopilot:eulercopilot /var/log/nginx && \
chown -R eulercopilot:eulercopilot /var/lib/nginx && \
chown -R eulercopilot:eulercopilot /etc/nginx && \
chmod -R 750 /var/log/nginx && \
find /var/log/nginx -type f -exec chmod 640 {} + && \
chmod -R 500 /var/lib/nginx && \
chmod -R 500 /usr/share/nginx && \
chmod -R 500 /etc/nginx && \
find /var/log/nginx -type f -exec chmod 400 {} +
RUN yum remove -y gdb-gdbserver && \
sh -c "find /usr /etc \( -name *yum* -o -name *dnf* -o -name *vi* -o -name *sqlite* -o -name *python* \) -exec rm -rf {} + || true" && \
sh -c "find /usr /etc \( -name ps -o -name top \) -exec rm -rf {} + || true"
EXPOSE 9888
USER eulercopilot
WORKDIR /home/eulercopilot
ENTRYPOINT [ "bash", "./start.sh" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pipihugh/euler-copilot-witchaind-web.git
git@gitee.com:pipihugh/euler-copilot-witchaind-web.git
pipihugh
euler-copilot-witchaind-web
euler-copilot-witchaind-web
master

搜索帮助