2025-03-26 22:28:42 +13:00

65 lines
1.9 KiB
Docker

FROM ubuntu:noble AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt -y install build-essential make gcc wget tar lhasa
RUN mkdir /build && mkdir -p /opt/amiga/vbcc/bin
RUN cd /build && \
wget http://sun.hasenbraten.de/vasm/release/vasm.tar.gz && \
tar xf vasm.tar.gz && \
cd vasm && \
make CPU=m68k SYNTAX=mot && \
cp vasmm68k_mot vobjdump /opt/amiga/vbcc/bin
RUN cd /build && \
wget http://sun.hasenbraten.de/vlink/release/vlink.tar.gz && \
tar xf vlink.tar.gz && \
cd vlink && \
make && \
cp vlink /opt/amiga/vbcc/bin
ADD dtanswers /dtanswers
RUN cd /build && \
wget http://phoenix.owl.de/tags/vbcc0_9h.tar.gz && \
tar xf vbcc0_9h.tar.gz && \
cd vbcc && \
make TARGET=m68k < /dtanswers && \
cp bin/* /opt/amiga/vbcc/bin
RUN cd /build && \
wget https://aminet.net/dev/misc/NDK3.2.lha && \
mkdir /opt/amiga/NDK3.2 && \
cd /opt/amiga/NDK3.2 && \
lha x /build/NDK3.2.lha
RUN cd /build && \
wget http://phoenix.owl.de/vbcc/2022-05-22/vbcc_target_m68k-amigaos.lha && \
lha x vbcc_target_m68k-amigaos.lha && \
mv /build/vbcc_target_m68k-amigaos/targets /opt/amiga/vbcc/ && \
wget http://phoenix.owl.de/vbcc/2022-02-28/vbcc_unix_config.tar.gz && \
tar xf vbcc_unix_config.tar.gz && \
mv config /opt/amiga/vbcc/
FROM ubuntu:noble
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt -y install lhasa curl git make python3 python3-pip srecord vim && \
update-alternatives --set editor /usr/bin/vim.basic && \
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED && \
pip3 install -U git+https://github.com/cnvogelg/amitools.git && \
pip3 install machine68k && \
apt-get -y clean
COPY --chown=ubuntu:ubuntu --from=builder /opt/amiga /opt/amiga
ENV VBCC=/opt/amiga/vbcc
ENV PATH=/opt/amiga/vbcc/bin:$PATH
ENV NDK32=/opt/amiga/NDK3.2
USER ubuntu