-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (25 loc) · 969 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
30
31
32
FROM debian:stable-slim
LABEL "com.github.actions.name"="Construct New Toolchain"
LABEL "com.github.actions.description"="Build toolchains with ct-ng"
LABEL "com.github.actions.icon"="fast-forward"
LABEL "com.github.actions.color"="red"
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ARG CT_NG_BASE_URL=https://github.com/crosstool-ng/crosstool-ng.git
RUN apt-get update && apt-get install -y \
git build-essential bison flex texinfo help2man libncurses5-dev \
python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \
patch libstdc++6 gettext gperf \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --recursive ${CT_NG_BASE_URL} \
&& cd crosstool-ng \
&& ./bootstrap \
&& ./configure \
&& make \
&& make install \
&& rm -rf ../crosstool-ng/
COPY entrypoint.sh /entrypoint.sh
COPY arm9-linux-gnueabi.config /arm9-linux-gnueabi.config
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/bin/bash" ]