update dockerfile

This commit is contained in:
jr-k 2024-08-04 19:14:26 +02:00
parent b1483bbf45
commit 3715776f6d

View File

@ -3,11 +3,18 @@ FROM python:3.9.17-alpine3.17
# Install ffmpeg and other dependencies # Install ffmpeg and other dependencies
RUN apk add --no-cache gcc musl-dev sqlite-dev ntfs-3g ffmpeg build-base linux-headers RUN apk add --no-cache gcc musl-dev sqlite-dev ntfs-3g ffmpeg build-base linux-headers
# Install Rust and Cargo
RUN apk add --no-cache curl \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& source $HOME/.cargo/env \
&& rustup default stable \
WORKDIR /app WORKDIR /app
COPY . . COPY . .
# Install Python dependencies # Install Python dependencies
RUN pip install -r requirements.txt RUN /root/.cargo/bin/cargo --version \
&& pip install -r requirements.txt
ENTRYPOINT ["python", "/app/obscreen.py"] ENTRYPOINT ["python", "/app/obscreen.py"]