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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -2,6 +2,7 @@ FROM continuumio/miniconda3:latest
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
7
  git \
@@ -20,13 +21,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
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
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # 安装系统依赖
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  build-essential \
8
  git \
 
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
+ cadquery-ocp \
29
  -y && \
30
  conda clean --all -y
31
 
32
+ # 验证安装
33
  RUN python -c "import sys; print('Python:', sys.version)" && \
34
  python -c "from OCP.STEPControl import STEPControl_Reader; print('OCP installed successfully')" || echo "OCP installation may have issues"
35