Skip to content

Dockerize suggestion #112

@yangsungtze

Description

@yangsungtze

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions