-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
39 lines (29 loc) · 1.23 KB
/
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
30
31
32
33
34
35
36
37
38
39
FROM quay.io/centos/centos:stream8
# Update the system and install necessary tools.
RUN dnf -y update && \
dnf -y install wget bzip2 unzip git mesa-dri-drivers python3 python3-pip
# Install numpy
RUN pip3 install numpy
# Install the newest version of KLayout
RUN wget https://www.klayout.org/downloads/CentOS_8/klayout-0.28.13-0.x86_64.rpm -O ~/klayout.rpm && \
dnf -y localinstall ~/klayout.rpm && \
rm ~/klayout.rpm
# Clone SiEPIC-Tools and SiEPIC_EBeam_PDK
RUN mkdir -p /root/.klayout/salt && \
cd /root/.klayout/salt && \
git clone https://github.com/SiEPIC/SiEPIC-Tools.git && \
git clone https://github.com/SiEPIC/SiEPIC_EBeam_PDK.git
# Create the working directory for SiEPICfab-EBeam-ZEP-PDK
RUN mkdir -p /root/Github
# Set the working directory for SiEPICfab-EBeam-ZEP-PDK
WORKDIR /root/Github
# Clone ZEP PDK
RUN git clone https://github.com/SiEPIC/SiEPICfab-EBeam-ZEP-PDK.git
# Install ZEP PDK by creating a symbolic link from the repo folder into the KLayout tech folder
RUN mkdir -p /root/.klayout/tech && \
ln -s /root/Github/SiEPICfab-EBeam-ZEP-PDK/SiEPICfab_EBeam_ZEP /root/.klayout/tech
# Set the working directory
WORKDIR /home
# Set PATH
ENV PATH="/usr/local/bin:${PATH}"
ENV QT_QPA_PLATFORM=minimal