-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (41 loc) · 1.37 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
40
41
# sytax=docker/dockerfile:1
FROM debian:bookworm-slim
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND: noninteractive
ENV TZ: Etc/UTC
COPY scripts/install-arm-none-eabi.sh /scripts/install-arm-none-eabi.sh
RUN chmod +x /scripts/install-arm-none-eabi.sh
RUN apt-get clean && \
apt-get update && \
apt-get install --no-install-recommends -y \
build-essential \
cmake \
git \
ninja-build \
srecord \
python3 \
python3-venv \
pandoc \
zsh \
bash \
nano \
wget \
openssh-client
# Install packages necessary for pandoc/sphinx pdf output
RUN apt-get install -y \
texlive \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
texlive-science \
latexmk
# Fix system GCC to specific version (12)
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 1000
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 1000
RUN update-alternatives --config gcc --skip-auto
RUN update-alternatives --config g++ --skip-auto
RUN /scripts/install-arm-none-eabi.sh
ENTRYPOINT /bin/bash -c "git config --global --add safe.directory $PWD" && zsh
WORKDIR /home/app
CMD ["zsh"]