-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (27 loc) · 850 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
FROM python:3.11
# Update the package list and install system dependencies including mono
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
mediainfo \
git \
g++ \
cargo \
mktorrent \
rustc \
mono-complete && \
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 /Only-Uploader
# 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", "/Only-Uploader/upload.py"]