kimnamjoon0007 commited on
Commit
7d9c8f4
·
verified ·
1 Parent(s): 68bebf4

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ ffmpeg \
8
+ libsndfile1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy requirements first for caching
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy app
16
+ COPY app.py .
17
+
18
+ # Create non-root user for security
19
+ RUN useradd -m -u 1000 user
20
+ USER user
21
+
22
+ # Expose port
23
+ EXPOSE 7860
24
+
25
+ # Run the app
26
+ CMD ["python", "app.py"]