-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 983 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (22 loc) · 983 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
26
27
28
29
# Dockerfile for setting up the environment
FROM ubuntu:22.04
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y software-properties-common fontconfig wget
RUN add-apt-repository --yes ppa:kicad/kicad-9.0-releases
# Install required tools and dependencies
RUN apt-get update && apt-get install -y \
kicad \
python3 \
python3-pip \
xvfb \
&& rm -rf /var/lib/apt/lists/*
# Install fonts
RUN wget https://github.com/google/fonts/raw/refs/heads/main/ofl/chakrapetch/ChakraPetch-Regular.ttf -O /usr/share/fonts/truetype/ChakraPetch-Regular.ttf \
&& fc-cache -f -v
RUN wget https://github.com/google/fonts/raw/refs/heads/main/ofl/chakrapetch/ChakraPetch-SemiBold.ttf -O /usr/share/fonts/truetype/ChakraPetch-SemiBold.ttf \
&& fc-cache -f -v
# Install the InteractiveHtmlBom tool
RUN pip3 install InteractiveHtmlBom
# Set the working directory
WORKDIR /workspace