update dockerfile

This commit is contained in:
jr-k 2024-08-04 19:27:58 +02:00
parent 6892a0ded5
commit 9b86106278

View File

@ -1,20 +1,30 @@
FROM python:3.9.17-alpine3.17
# 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 \
curl \
tar \
bash
# 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
# 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 /root/.cargo/bin/cargo --version \
&& pip install -r requirements.txt
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "/app/obscreen.py"]