You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
628 B

4 months ago
FROM ubuntu:22.04
# 避免交互式提示
ENV DEBIAN_FRONTEND=noninteractive
# 设置时区
ENV TZ=Asia/Shanghai
# 安装基础包和OpenCASCADE依赖
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
git \
libocct-dev \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# 设置pip源为清华源
RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 安装Python包
RUN pip3 install numpy OCP occwl
# 设置工作目录
WORKDIR /app
# 将当前目录复制到容器中
COPY . /app/
# 设置Python路径
ENV PYTHONPATH=/app:$PYTHONPATH