-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (22 loc) · 985 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN (apt-get update && apt-get upgrade -y -q && apt-get -y -q autoclean && apt-get -y -q autoremove)
# Install convenient tools for working on the host
RUN apt install -y bash-completion vim
# Install minimal dependencies
RUN apt install -y git wget unzip \
python3 python3-pip\
ngspice libngspice0-dev
# This places the shared library to a standard place
# Install PySpice : pip pulls all the python depencies
RUN pip3 install PySpice
# This places the PySpice modules to a standard place
# Retrieve latest version of PySpice to test an example
WORKDIR /root
RUN git clone https://github.com/FabriceSalvaire/PySpice.git
# Install an additional package for enabling graphics output with python on docker
RUN apt-get install -y python3-tk
# Print the PYTHONPATH variable
RUN python3 -c "import sys; print(sys.path)"
# Run PySpice example
ENTRYPOINT python3 PySpice/examples/transistor/transistor.py