Avanish11 commited on
Commit
6d3d204
·
verified ·
1 Parent(s): 5b355df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -3
Dockerfile CHANGED
@@ -1,11 +1,21 @@
1
- FROM python:3.11
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- COPY . .
 
10
 
11
- CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements first
6
  COPY requirements.txt .
7
 
8
+ # Install dependencies
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Copy application
12
+ COPY app.py .
13
 
14
+ # Create directories
15
+ RUN mkdir -p generated_images
16
+
17
+ # Expose port
18
+ EXPOSE 8000
19
+
20
+ # Run the application
21
+ CMD ["python", "app.py"]