Spaces:
Build error
Build error
Create DOCKERFILE
Browse files- DOCKERFILE +31 -0
DOCKERFILE
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
# Install necessary system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
git \
|
6 |
+
git-lfs \
|
7 |
+
ffmpeg \
|
8 |
+
libsm6 \
|
9 |
+
libxext6 \
|
10 |
+
cmake \
|
11 |
+
rsync \
|
12 |
+
libgl1-mesa-glx \
|
13 |
+
build-essential \
|
14 |
+
curl
|
15 |
+
|
16 |
+
# Install Rust
|
17 |
+
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
18 |
+
ENV PATH="/root/.cargo/bin:${PATH}"
|
19 |
+
|
20 |
+
# Set up the working directory
|
21 |
+
WORKDIR /home/user/app
|
22 |
+
|
23 |
+
# Install Python dependencies
|
24 |
+
COPY requirements.txt /tmp/requirements.txt
|
25 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
26 |
+
|
27 |
+
# Copy the application files
|
28 |
+
COPY . /home/user/app
|
29 |
+
|
30 |
+
# Set the entrypoint
|
31 |
+
ENTRYPOINT ["python", "app.py"]
|