mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-09 12:16:15 +00:00
Dockerfile.stockholm clones github.com/krahl/soundcork-stockholm-app at build time and installs the required tools (prettier, patch, unzip, jq). No pre-built image is published upstream, so users must run `make build-stockholm-image` once before `make prepare-stockholm`. `make prepare-stockholm` runs the upstream entrypoint logic (extract zip, run prettier, apply patches) via a volume-mounted docker run, stopping before `exec java` so we only collect the processed stockholm/ output. The Go service then serves that directory directly with no patching required at runtime. Prerequisites: Docker with internet access, and stockholm_zip/stockholm.zip (Stockholm source zip placed manually — tracked directory, zip gitignored). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.3 KiB
Docker
40 lines
1.3 KiB
Docker
# Dockerfile.stockholm — builds the Stockholm frontend preparation image.
|
|
#
|
|
# This image clones krahl/soundcork-stockholm-app, installs the required tools
|
|
# (prettier, patch, unzip, jq), and is used exclusively to run the entrypoint
|
|
# preparation step that extracts and patches the Stockholm frontend.
|
|
#
|
|
# Java is NOT included — we stop before `exec java`.
|
|
#
|
|
# Usage (see Makefile targets build-stockholm-image / prepare-stockholm):
|
|
#
|
|
# docker build --build-arg STOCKHOLM_APP_REF=main \
|
|
# -f Dockerfile.stockholm -t soundcork-stockholm-app .
|
|
#
|
|
# docker run --rm \
|
|
# -v "$PWD/stockholm_zip:/app/stockholm_zip:ro" \
|
|
# -v "$PWD/stockholm:/app/stockholm" \
|
|
# --entrypoint bash soundcork-stockholm-app \
|
|
# -c 'awk "/^exec java/{exit} {print}" /app/docker-entrypoint.sh | bash'
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
ARG STOCKHOLM_APP_REF=main
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
git \
|
|
jq \
|
|
unzip \
|
|
nodejs \
|
|
npm \
|
|
patch && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN npm install -g prettier@3.8.3 && npm cache clean --force
|
|
|
|
RUN git clone --depth 1 --branch "${STOCKHOLM_APP_REF}" \
|
|
https://github.com/krahl/soundcork-stockholm-app /app
|
|
|
|
WORKDIR /app |