AAdonis commited on
Commit
2916460
·
verified ·
1 Parent(s): 083d2b4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Install torch 2.4.1 first (required for xcodec2)
9
+ RUN pip install --no-cache-dir torch==2.4.1 --index-url https://download.pytorch.org/whl/cu121
10
+
11
+ # Copy requirements and install
12
+ COPY requirements.txt /tmp/requirements.txt
13
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
14
+
15
+ # Copy app
16
+ COPY app.py /app/app.py
17
+
18
+ # Set working directory
19
+ WORKDIR /app
20
+
21
+ # Run app
22
+ CMD ["python", "app.py"]
23
+