From 3fec08b2037c77c69a876f6c49efb64294494ced Mon Sep 17 00:00:00 2001 From: Tord-Vincent Heggland Date: Mon, 6 Apr 2026 20:16:45 +0200 Subject: [PATCH] thisworksgit status --- Dockerfile | 5 +++++ docker-compose.yaml | 23 +++++------------------ 2 files changed, 10 insertions(+), 18 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..823f1ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:bookworm-slim + +RUN apt-get update && \ + apt-get install -y squeezelite libasound2 alsa-utils && \ + rm -rf /var/lib/apt/lists/* diff --git a/docker-compose.yaml b/docker-compose.yaml index 7beac98..06fbcfa 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,26 +1,13 @@ services: squeezelite: - image: giof71/squeezelite:stable + build: . container_name: squeezelite - devices: - - /dev/snd:/dev/snd restart: unless-stopped network_mode: host -# environment: - # SQUEEZELITE_MODE: ALSA - # SQUEEZELITE_NAME: ThinkBook-Squeeze - # SQUEEZELITE_SERVER_PORT: "lmsstack_lms:${LMS_HTTP_PORT}" - # SQUEEZELITE_AUDIO_DEVICE: default + devices: + - /dev/snd:/dev/snd volumes: - /etc/asound.conf:/etc/asound.conf:ro - /var/lib/alsa:/var/lib/alsa - command: - - /opt/squeezelite - - -n - - ThinkBook DAC - - -o - - hw:1,0 - - -s - - 10.10.10.1 - - -d - - all=info + entrypoint: ["/usr/bin/squeezelite"] + command: ["-n", "ThinkBook DAC", "-o", "hw:1,0", "-s", "10.10.10.1", "-d", "all=info"]