update dockerfile
This commit is contained in:
parent
e9c4215f88
commit
c1d95bf569
24
Dockerfile
24
Dockerfile
@ -1,13 +1,31 @@
|
|||||||
FROM python:3.9.17-alpine3.17
|
FROM python:3.9-slim-bullseye
|
||||||
|
|
||||||
# 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 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
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
ENTRYPOINT ["python", "/app/obscreen.py"]
|
ENTRYPOINT ["python", "/app/obscreen.py"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user