-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 611 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 611 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3-alpine
LABEL maintainer="xnetcat (Jakub)"
# Install dependencies
RUN apk add --no-cache \
ca-certificates \
ffmpeg \
openssl \
aria2 \
g++ \
git \
py3-cffi \
libffi-dev \
zlib-dev
# Install uv and update pip/wheel
RUN pip install --upgrade pip uv wheel spotipy
# Set workdir
WORKDIR /app
# Copy requirements files
COPY . .
# Install spotdl requirements
RUN uv sync
# Create a volume for the output directory
VOLUME /music
# Change Workdir to download location
WORKDIR /music
# Entrypoint command
ENTRYPOINT ["uv", "run", "--project", "/app", "spotdl"]