-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (13 loc) · 879 Bytes
/
Dockerfile
File metadata and controls
25 lines (13 loc) · 879 Bytes
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
FROM kicad/kicad:9.0.5
USER root
RUN apt update && apt install -y --no-install-recommends apt-utils python3-jsonschema python3-pandas python3-openpyxl python3-lxml xvfb git pigz
RUN mkdir -p /usr/share/ && \
git clone -b master --depth=1 https://github.com/openscopeproject/InteractiveHtmlBom.git /usr/share/InteractiveHtmlBom && \
git clone -b master --depth=1 https://gitlab.com/kicad/libraries/kicad-packages3D.git /usr/share/kicad-packages3D && \
ln -sfv /usr/share/kicad-packages3D /usr/share/kicad/3dmodels
COPY scripts /usr/share/pcb-release
COPY pcb.schema.json /usr/share/pcb-release/pcb.schema.json
RUN /bin/bash -c "for f in \$(ls -1 /usr/share/pcb-release/*); do ln -sv \$f /usr/bin/\$(basename \$f);done"
COPY --chown=kicad:kicad test /home/kicad/test
RUN /home/kicad/test/test_runner.sh || true && rm -rf /home/kicad/test/
USER kicad