EGYADMIN commited on
Commit
0b8536a
·
verified ·
1 Parent(s): 42a2f6a

Add Dockerfile for development environment

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ git-lfs \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python packages
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application files
16
+ COPY . .
17
+
18
+ # Set up Hugging Face cache directory
19
+ ENV HF_HOME=/app/cache
20
+
21
+ # Expose port for the application
22
+ EXPOSE 7860
23
+
24
+ # Run the application
25
+ CMD ["python", "app.py"]