2018-04-23 18:08:36 +03:00
|
|
|
#
|
|
|
|
# Docker cross-compiler target
|
|
|
|
#
|
2022-09-14 18:59:30 +03:00
|
|
|
# This docker target builds on the Debian Bullseye base image.
|
2018-04-23 18:08:36 +03:00
|
|
|
#
|
2022-09-14 18:59:30 +03:00
|
|
|
FROM docker.io/library/debian:11-slim
|
2018-04-23 18:08:36 +03:00
|
|
|
|
2022-09-14 18:59:30 +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 18:08:36 +03:00
|
|
|
gcc-m68k-linux-gnu \
|
|
|
|
libc6-dev-m68k-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
|