Great work!!!
As different users may have varying environments and package versions, using a Dockerfile to containerize the project is recommended.
The built image uses about 600MB of disk space.
I've tested it with one of the sites personally and leave here for reference.
Dockerfile
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
#libffi-dev \
#libssl-dev \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT ["python", "subtitle_downloader.py"]
Build
docker build -t subtitle-downloader .
Execute
docker run -rm \
-v "$PWD/cookies:/app/cookies" \
-v "$PWD/downloads:/app/downloads" \
subtitle-downloader \
"<URL>" \
[options]
Great work!!!
As different users may have varying environments and package versions, using a Dockerfile to containerize the project is recommended.
The built image uses about 600MB of disk space.
I've tested it with one of the sites personally and leave here for reference.
Dockerfile
Build
docker build -t subtitle-downloader .Execute