spotify-clone (sha256:8729c3aff6e3761966c44b60ba65bf6c0b72c19a28437bb0ad8a879c1d342cc7)
Published 2026-03-21 20:58:04 +07:00 by vndangkhoa
Installation
docker pull localhost:3050/vndangkhoa/spotify-clone@sha256:8729c3aff6e3761966c44b60ba65bf6c0b72c19a28437bb0ad8a879c1d342cc7sha256:8729c3aff6e3761966c44b60ba65bf6c0b72c19a28437bb0ad8a879c1d342cc7Image Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1773619200' |
| 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_20.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]" # buildkit |
| COPY /app/backend/target/release/backend-rust /app/server # buildkit |
| COPY /app/frontend/dist /app/static # buildkit |
| RUN /bin/sh -c mkdir -p /tmp/spotify-clone-cache /tmp/spotify-clone-downloads && chmod 777 /tmp/spotify-clone-cache /tmp/spotify-clone-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 'CRITICAL: STARTING SPOTIFY CLONE...' && /app/server 2>&1"] |