amiga-gcc/Dockerfile

32 lines
1.2 KiB
Docker
Raw Permalink Normal View History

2020-07-22 16:15:41 +00:00
FROM debian:10.4-slim AS builder
RUN echo deb http://deb.debian.org/debian/ buster main >/etc/apt/sources.list &&\
echo deb-src http://deb.debian.org/debian/ buster main >>/etc/apt/sources.list &&\
echo deb http://security.debian.org/debian-security buster/updates main >>/etc/apt/sources.list &&\
echo deb-src http://security.debian.org/debian-security buster/updates main >>/etc/apt/sources.list &&\
echo deb http://deb.debian.org/debian/ buster-updates main >>/etc/apt/sources.list &&\
echo deb-src http://deb.debian.org/debian/ buster-updates main >>/etc/apt/sources.list
2020-07-22 16:15:41 +00:00
RUN apt-get -y update &&\
2022-07-09 18:24:03 +00:00
apt-get -y install make wget git gcc g++ libgmp-dev libmpfr-dev libmpc-dev flex bison gettext texinfo ncurses-dev autoconf rsync
2020-07-22 16:15:41 +00:00
RUN git clone https://github.com/bebbo/amiga-gcc &&\
cd amiga-gcc &&\
2022-07-09 18:24:03 +00:00
make update -j &&\
make all all-sdk -j8
2020-07-22 16:15:41 +00:00
FROM debian:10.4-slim
2018-09-14 08:50:33 +00:00
COPY --from=builder /opt/amiga /opt/amiga
2020-07-22 16:15:41 +00:00
RUN echo deb http://deb.debian.org/debian/ buster main >/etc/apt/sources.list &&\
apt-get -y update &&\
2022-07-09 18:24:03 +00:00
apt-get -y install make git libmpc3 libmpfr6 libgmp10
RUN chmod o+r -R /opt/amiga &&\
useradd -m -s /bin/bash test &&\
echo 'export PATH=$PATH:/opt/amiga/bin' >> /home/test/.bashrc