update dockerfile
This commit is contained in:
parent
9b86106278
commit
a92188ae1f
23
Dockerfile
23
Dockerfile
@ -1,30 +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 \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
musl-dev \
|
||||
sqlite-dev \
|
||||
libc6-dev \
|
||||
sqlite3 \
|
||||
libsqlite3-dev \
|
||||
ntfs-3g \
|
||||
ffmpeg \
|
||||
build-base \
|
||||
linux-headers \
|
||||
build-essential \
|
||||
curl \
|
||||
tar \
|
||||
bash
|
||||
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
|
||||
#RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \
|
||||
# && . "$HOME/.cargo/env"
|
||||
|
||||
# Set environment variable to add Rust to the path
|
||||
ENV PATH="/root/.cargo/bin:${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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user