代码拉取完成,页面将自动刷新
同步操作将从 Jeffrey-Wang/3d-model-convert-to-gltf 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# docker build . -t wj2015/3d-model-convert-to-gltf:v1.6
# startup docker by: docker run -d -p 8999:8999 wj2015/3d-model-convert-to-gltf:latest
# you can debug by: docker run -it --rm -v `pwd`:/opt/3d-model-convert-to-gltf/ wj2015/3d-model-convert-to-gltf:latest /bin/bash
# you can also execute `conda activate pythonocc` to enter the environment.
FROM continuumio/miniconda3:4.10.3-alpine
LABEL maintainer=admin@wj2015.com
#RUN cd /opt && \
# if built in china, you should config this mirror
# /opt/conda/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ && \
# /opt/conda/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && \
# /opt/conda/bin/conda config --set show_channel_urls yes && \
# /opt/conda/bin/conda activate pythonocc
# git clone https://github.com/wangerzi/3d-model-convert-to-gltf.git && \
RUN conda create -n pythonocc -c dlr-sc -c pythonocc pythonocc-core=7.4.0rc1 -y
# install 12.0.0 nodejs
RUN wget -q https://nodejs.org/download/release/v12.0.0/node-v12.0.0-linux-x64.tar.gz && \
tar -zxvf node-v12.0.0-linux-x64.tar.gz && rm -rf node-v12.0.0-linux-x64.tar.gz
# ln -s bin/node /usr/local/bin/node && ln -s bin/npm /usr/local/bin/npm && chmod -R a+x /usr/local/bin &&\
ENV PATH $PATH:/node-v12.0.0-linux-x64/bin/
RUN apk --update add linux-headers binutils-gold gnupg libstdc++ mesa-dev && rm -rf /var/cache/apk/* && \
npm install -g gltf-pipeline obj2gltf fbx2gltf && \
ln -s /node-v12.0.0-linux-x64/lib/node_modules/fbx2gltf/bin/Linux/FBX2glTF /node-v12.0.0-linux-x64/bin/fbx2gltf
COPY . /opt/3d-model-convert-to-gltf
# install pip requirements
RUN cd /opt/3d-model-convert-to-gltf && \
conda run -n pythonocc pip install -r server/requirements.txt
WORKDIR /opt/3d-model-convert-to-gltf
EXPOSE 8999
CMD conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/rpc_server.py
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。