Iris314 commited on
Commit
1cca85f
·
verified ·
1 Parent(s): 7d4952f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM continuumio/miniconda3:latest
2
 
3
  WORKDIR /app
4
 
5
- # 安装系统依赖
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  build-essential \
8
  git \
@@ -21,17 +20,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
21
  && apt-get clean \
22
  && rm -rf /var/lib/apt/lists/*
23
 
24
- # 直接在base环境安装
25
  RUN conda install -c conda-forge \
26
  python=3.10 \
27
  gradio \
28
- -y
29
-
30
- # 从GitHub源码安装pythonocc-core(避免conda-forge的问题)
31
- RUN pip install --no-cache-dir git+https://github.com/tpaviot/pythonocc-core.git@7.8.1.1 && \
32
  conda clean --all -y
33
 
34
- # 验证安装
35
  RUN python -c "import sys; print('Python:', sys.version)" && \
36
  python -c "from OCP.STEPControl import STEPControl_Reader; print('OCP installed successfully')" || echo "OCP installation may have issues"
37
 
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
7
  git \
 
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
23
  RUN conda install -c conda-forge \
24
  python=3.10 \
25
  gradio \
26
+ cadquery-ocp=7.8.1.1.post1 \
27
+ -y && \
 
 
28
  conda clean --all -y
29
 
 
30
  RUN python -c "import sys; print('Python:', sys.version)" && \
31
  python -c "from OCP.STEPControl import STEPControl_Reader; print('OCP installed successfully')" || echo "OCP installation may have issues"
32