2018-04-23 15:54:09 +03:00
|
|
|
#
|
|
|
|
# Docker cross-compiler target
|
|
|
|
#
|
2022-09-14 18:59:28 +03:00
|
|
|
# This docker target builds on the Debian Bullseye base image.
|
2018-04-23 15:54:09 +03:00
|
|
|
#
|
2022-09-14 18:59:28 +03:00
|
|
|
FROM docker.io/library/debian:11-slim
|
2018-04-23 15:54:09 +03:00
|
|
|
|
2022-09-14 18:59:28 +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 \
|
2018-04-23 15:54:09 +03:00
|
|
|
gcc-alpha-linux-gnu \
|
2019-08-12 17:47:10 +03:00
|
|
|
libc6.1-dev-alpha-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
|