winzik/docker/cpc/Dockerfile

10 lines
957 B
Docker

# The IDE's Amstrad CPC window (ide/src/Cpc): dsk2jumphp's headless CPC 6128 emulator, its AY renderer and its Python
# tools (Pillow, numpy; ffmpeg for .ogg), built once and cached. No context: the IDE sends this file on stdin (docker build -),
# tagged jumphp/cpc:<hash of this file>. When a local checkout of dsk2jumphp is found (the folder next to the project, or
# JUMPHP_DSK2JUMPHP), the IDE mounts it at /d2j-local and builds it into the project's var/cpc/.d2j instead.
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends gcc libc6-dev make python3 python3-pil python3-numpy ffmpeg git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ARG DSK2JUMPHP_COMMIT=7df03ec2b1e75765a5fcd5e744175292d914e90d
RUN git clone https://git.jumphp.net/jumphp/dsk2jumphp.git /opt/dsk2jumphp && cd /opt/dsk2jumphp && git checkout -q "$DSK2JUMPHP_COMMIT" \
&& make && rm -rf .git tests/out && chmod -R a+rX /opt/dsk2jumphp