| # debian.sh --arch 'amd64' out/ 'bookworm' '@1787529600' |
| WORKDIR /app |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl libssl3 python3 && curl -sL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY /app/kv-tidal /app/kv-tidal # buildkit |
| COPY /app/frontend/out /app/web # buildkit |
| COPY spk/bin/slskd /usr/local/bin/slskd # buildkit |
| COPY spk/share/slskd /app/share/slskd # buildkit |
| COPY docker/entrypoint.sh /app/entrypoint.sh # buildkit |
| ENV HOST=0.0.0.0 PORT=8080 PUID=1000 PGID=1000 DATA_DIR=/data WEB_DIR=/app/web MUSIC_DIR=/music |
| RUN /bin/sh -c mkdir -p /data /music && chmod 777 /data /music && chmod +x /app/kv-tidal /usr/local/bin/slskd /app/entrypoint.sh # buildkit |
| EXPOSE [5030/tcp 50300/tcp 8080/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:8080/rest/ping.view || exit 1] Interval:30s Timeout:5s StartPeriod:5s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/app/entrypoint.sh"] |