forked from L4GSP1KE/Upload-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
35 lines (28 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.12
# Update the package list and install system dependencies including mono
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
mediainfo=23.04-1 \
git \
g++ \
cargo \
mktorrent \
rustc \
mono-complete \
nano && \
rm -rf /var/lib/apt/lists/*
# Set up a virtual environment to isolate our Python dependencies
RUN python -m venv /venv
ENV PATH="/venv/bin:$PATH"
# Install wheel and other Python dependencies
RUN pip install --upgrade pip wheel
# Set the working directory in the container
WORKDIR /Upload-Assistant
# Copy the Python requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the rest of the application's code
COPY . .
# Set the entry point for the container
ENTRYPOINT ["python", "/Upload-Assistant/upload.py"]