spotify-clone (sha256:ddf3422e7fc86d216df4e48dfc386276fa0cf49b19a2bad623491554d89f535f)
Published 2026-07-31 14:51:48 +07:00 by vndangkhoa
Installation
docker pull git.khoavo.myds.me/vndangkhoa/spotify-clone@sha256:ddf3422e7fc86d216df4e48dfc386276fa0cf49b19a2bad623491554d89f535fsha256:ddf3422e7fc86d216df4e48dfc386276fa0cf49b19a2bad623491554d89f535fImage layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1783900800' |
| WORKDIR /app |
| RUN /bin/sh -c apt-get update && apt-get install -y python3 python3-pip python3-venv ffmpeg ca-certificates curl gnupg libssl3 zlib1g && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c python3 -m venv /opt/venv # buildkit |
| ENV PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c pip install --no-cache-dir -U "yt-dlp[default]" yt-dlp-ejs # buildkit |
| COPY /app/backend-rust-bin /app/server # buildkit |
| COPY /app/frontend/dist /app/static # buildkit |
| RUN /bin/sh -c mkdir -p /tmp/kv-music-cache /tmp/kv-music-downloads && chmod 777 /tmp/kv-music-cache /tmp/kv-music-downloads # buildkit |
| RUN /bin/sh -c chmod +x /app/server # buildkit |
| ENV PORT=8080 |
| ENV RUST_LOG=info |
| ENV PYTHONUNBUFFERED=1 |
| EXPOSE [8080/tcp] |
| USER 0 |
| CMD ["sh" "-c" "echo 'Starting KV Music...' && /app/server 2>&1"] |