diff --git a/Dockerfile b/Dockerfile index 933407b..d757a82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,31 @@ -FROM python:3.9.17-alpine3.17 +FROM python:3.9-slim-bullseye # Install ffmpeg and other dependencies -RUN apk add --no-cache gcc musl-dev sqlite-dev ntfs-3g ffmpeg build-base linux-headers +RUN apt-get update && apt-get install -y --no-install-recommends \ + gcc \ + libc6-dev \ + sqlite3 \ + ntfs-3g \ + ffmpeg \ + build-essential \ + linux-headers-$(uname -r) \ + curl \ + tar \ + bash \ + && rm -rf /var/lib/apt/lists/* + +# Install Rust using rustup +RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \ + && source $HOME/.cargo/env + +# Set environment variable to add Rust to the path +ENV PATH="/root/.cargo/bin:${PATH}" WORKDIR /app COPY . . # Install Python dependencies -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt ENTRYPOINT ["python", "/app/obscreen.py"]