Spaces:
Build error
Build error
Create dockerfile
Browse files- dockerfile +23 -0
dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
git ffmpeg libsm6 libxext6 wget curl && \
|
6 |
+
pip install --upgrade pip
|
7 |
+
|
8 |
+
# Install Python dependencies
|
9 |
+
COPY requirements.txt /app/requirements.txt
|
10 |
+
WORKDIR /app
|
11 |
+
RUN pip install -r requirements.txt
|
12 |
+
|
13 |
+
# Copy source code and scripts
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Make script executable
|
17 |
+
RUN chmod +x /app/start.sh
|
18 |
+
|
19 |
+
# Download huggingface_hub for model downloading
|
20 |
+
RUN pip install huggingface_hub
|
21 |
+
|
22 |
+
# Set entry point to your script
|
23 |
+
ENTRYPOINT ["bash", "/app/start.sh"]
|