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
|
# Install ffmpeg and other dependencies
|
||||||
RUN apk add --no-cache \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
gcc \
|
gcc \
|
||||||
musl-dev \
|
libc6-dev \
|
||||||
sqlite-dev \
|
sqlite3 \
|
||||||
|
libsqlite3-dev \
|
||||||
ntfs-3g \
|
ntfs-3g \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
build-base \
|
build-essential \
|
||||||
linux-headers \
|
|
||||||
curl \
|
curl \
|
||||||
tar \
|
tar \
|
||||||
bash
|
bash \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Rust using rustup
|
# Install Rust using rustup
|
||||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \
|
#RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable \
|
||||||
&& source $HOME/.cargo/env
|
# && . "$HOME/.cargo/env"
|
||||||
|
|
||||||
# Set environment variable to add Rust to the path
|
# Set environment variable to add Rust to the path
|
||||||
ENV PATH="/root/.cargo/bin:${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