update dockerfile

This commit is contained in:
张壹 2025-05-13 16:44:42 +08:00
parent 62e7fc7cba
commit bfa8429b54

View File

@ -30,6 +30,7 @@ RUN apt-get update && apt-get install -y g++ make cmake
RUN apt-get install -y --no-install-recommends libfftw3-dev libnetcdf-dev gmt libgmt-dev libgsl-dev libncurses-dev
RUN apt-get install -y --no-install-recommends libopenblas-dev libeigen3-dev
RUN apt-get install -y pkg-config
RUN apt-get install -y autoconf automake
# 创建工作目录
WORKDIR /app
@ -80,6 +81,8 @@ RUN mkdir build && cd build && cmake .. && make && make install
# 运行平台
FROM ubuntu:20.04
# 设置非交互式安装
ENV DEBIAN_FRONTEND=noninteractive
# 安装运行时必要依赖
RUN apt-get update && apt-get install -y libstdc++6
RUN apt-get install -y --no-install-recommends libfftw3-dev libnetcdf-dev gmt libgmt-dev libgsl-dev libncurses-dev