2022-02-25 20:20:09 +03:00
|
|
|
#
|
|
|
|
# Docker cross-compiler target
|
|
|
|
#
|
|
|
|
# This docker target builds on the Debian Bullseye base image.
|
|
|
|
#
|
2022-09-14 18:59:42 +03:00
|
|
|
FROM docker.io/library/debian:11-slim
|
2022-02-25 20:20:09 +03:00
|
|
|
|
2022-09-14 18:59:42 +03:00
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y eatmydata && \
|
|
|
|
eatmydata apt-get dist-upgrade -y && \
|
|
|
|
eatmydata apt-get install --no-install-recommends -y \
|
2022-02-25 20:20:09 +03:00
|
|
|
gcc-riscv64-linux-gnu \
|
|
|
|
libc6-dev-riscv64-cross
|
2023-02-28 22:06:48 +03:00
|
|
|
# As a final step configure the user (if env is defined)
|
|
|
|
ARG USER
|
|
|
|
ARG UID
|
|
|
|
RUN if [ "${USER}" ]; then \
|
|
|
|
id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
|