Updated the ytmusic cookies situation
This commit is contained in:
@@ -18,17 +18,21 @@ FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates ffmpeg python3 python3-pip python3-venv \
|
||||
firefox-esr xvfb x11vnc novnc websockify sqlite3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN python3 -m venv /opt/venv \
|
||||
&& /opt/venv/bin/pip install --no-cache-dir ytmusicapi yt-dlp
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
# Ensure absolute latest yt-dlp (pip cache may lag behind releases)
|
||||
RUN /opt/venv/bin/pip install --no-cache-dir --upgrade yt-dlp
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=backend /build/target/release/shanty .
|
||||
COPY --from=backend /build/shanty-web/static ./static
|
||||
COPY --from=backend /build/shanty-dl/scripts/ytmusic_search.py /usr/share/shanty/
|
||||
COPY --from=backend /build/shanty-dl/scripts/cookie_manager.py /usr/share/shanty/
|
||||
|
||||
RUN mkdir -p /config /data /music
|
||||
|
||||
@@ -37,7 +41,7 @@ ENV SHANTY_DATABASE_URL=sqlite:///data/shanty.db?mode=rwc
|
||||
ENV SHANTY_LIBRARY_PATH=/music
|
||||
ENV SHANTY_DOWNLOAD_PATH=/data/downloads
|
||||
|
||||
EXPOSE 8085
|
||||
EXPOSE 8085 6080
|
||||
|
||||
VOLUME ["/config", "/data", "/music"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user