代码拉取完成,页面将自动刷新
FROM debian:stable-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
gcc bison flex libtool autoconf automake libreadline-dev \
python3 python3-pip \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=
COPY ./third_party/ngspice-30.tar.gz /tmp/
RUN tar -xvzf /tmp/ngspice-30.tar.gz -C /tmp
COPY ./third_party/ngspice_config/compile_linux.sh /tmp/ngspice_config/compile_linux.sh
RUN cp -f /tmp/ngspice_config/compile_linux.sh /tmp/ngspice-30/ \
&& cd /tmp/ngspice-30 \
&& chmod 700 compile_linux.sh \
&& ./compile_linux.sh 64 \
&& ldconfig
COPY ./circuit_simulator/requirements.txt /srv/circuit_simulator/requirements.txt
RUN cd /srv/circuit_simulator && pip3 install -r requirements.txt
COPY ./circuit_simulator /srv/circuit_simulator
COPY ./schema /srv/schema
#COPY open_substation.scd /SCD/open_substation.scd
WORKDIR /srv/circuit_simulator
EXPOSE 5010
CMD ["python3","webAPI.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。