Add Boriel BASIC

This commit is contained in:
Neil McPhail 2025-04-28 08:59:46 +00:00
parent a8a0bde44a
commit ba5ce07264
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM z88dk/z88dk:latest as z88dk FROM z88dk/z88dk:latest AS z88dk
FROM ubuntu:24.04 AS build FROM ubuntu:24.04 AS build
RUN apt-get update \ RUN apt-get update \
@ -17,6 +17,8 @@ ADD https://github.com/einar-saukas/ZX0.git /zx0
RUN cd /zx0/src/ \ RUN cd /zx0/src/ \
&& gcc -O2 -o zx0 zx0.c optimize.c compress.c memory.c \ && gcc -O2 -o zx0 zx0.c optimize.c compress.c memory.c \
&& gcc -O2 -o dzx0 dzx0.c && gcc -O2 -o dzx0 dzx0.c
ADD https://www.boriel.com/files/zxb/zxbasic-1.18.1-linux64.tar.gz .
RUN tar xf zxbasic*
FROM ubuntu:24.04 FROM ubuntu:24.04
RUN apt-get update \ RUN apt-get update \
@ -26,6 +28,7 @@ RUN apt-get update \
make \ make \
openssh-client\ openssh-client\
pasmo \ pasmo \
python3 \
z80asm \ z80asm \
z80dasm \ z80dasm \
zmakebas \ zmakebas \
@ -34,7 +37,11 @@ COPY --from=build /usr/local/bin/sjasmplus /bin/sjasmplus
COPY --from=build /ttttt/ttttt /bin/ttttt COPY --from=build /ttttt/ttttt /bin/ttttt
COPY --from=build /zx0/src/zx0 /bin/zx0 COPY --from=build /zx0/src/zx0 /bin/zx0
COPY --from=build /zx0/src/dzx0 /bin/dzx0 COPY --from=build /zx0/src/dzx0 /bin/dzx0
COPY --from=build /zxbasic/zxbasm.py /opt/zxbasic/zxbasm
COPY --from=build /zxbasic/zxbc.py /opt/zxbasic/zxbc
COPY --from=build /zxbasic/zxbpp.py /opt/zxbasic/zxbpp
COPY --from=build /zxbasic/src /opt/zxbasic/src
COPY --from=z88dk /opt/z88dk /opt/z88dk COPY --from=z88dk /opt/z88dk /opt/z88dk
USER ubuntu USER ubuntu
RUN echo "PATH=$PATH:/opt/z88dk/bin" >> ~/.profile RUN echo "PATH=$PATH:/opt/z88dk/bin:/opt/zxbasic" >> ~/.profile
RUN echo "ZCCCFG=/opt/z88dk/lib/config/" >> ~/.profile RUN echo "ZCCCFG=/opt/z88dk/lib/config/" >> ~/.profile

View File

@ -29,6 +29,10 @@ The devcontainer contains:
- tzxlist - tzxlist
- zx0 (binary compressor) - zx0 (binary compressor)
- dzx0 (binary decompressor) - dzx0 (binary decompressor)
- ZX BASIC (aka Boriel BASIC)
- zxbc (BASIC compiler)
- zxbasm (assembler)
- zxbpp (preprocessor)
- ttttt (converts binaries into .tap blocks) - ttttt (converts binaries into .tap blocks)
- git (version control) - git (version control)
- make (build control) - make (build control)