-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
34 lines (25 loc) · 1.16 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
# Check the docker targets in ./Makefile to see how to use this.
FROM debian:bookworm AS build-stage
RUN apt-get update && apt-get install -y \
build-essential flex bison cmake texinfo device-tree-compiler git \
u-boot-tools lzop libusb-1.0-0-dev python3 python-is-python3 \
unzip libpython3-dev python3-dev locales
# https://devel.rtems.org/ticket/4726
RUN echo "en_US.ISO-8859-15 ISO-8859-15" >> /etc/locale.gen \
&& locale-gen
ENV LANG=en_US.iso885915
WORKDIR /grisp2-rtems-toolchain
COPY . .
RUN make install
# ------------------------------------------------------------------------------
FROM debian:bookworm-slim AS run-stage
RUN apt-get update && apt-get install -y \
build-essential flex bison cmake texinfo device-tree-compiler git \
u-boot-tools lzop libusb-1.0-0-dev python3 python-is-python3 \
unzip libpython3-dev python3-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /grisp2-rtems-toolchain
COPY --from=build-stage /grisp2-rtems-toolchain/rtems/5/ rtems/5/
ENV GRISP_TOOLCHAIN=/grisp2-rtems-toolchain/rtems/5
ENV GRISP_TC_ROOT=/grisp2-rtems-toolchain/rtems/5
ENV PATH="/grisp2-rtems-toolchain/rtems/5/bin:${PATH}"