TensorGuy01 commited on
Commit
d868d22
·
verified ·
1 Parent(s): 523d17f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -1,11 +1,17 @@
1
  FROM python:3.10-slim
2
 
3
- # Install required tools
4
- RUN apt-get update && apt-get install -y curl && apt-get clean
5
-
6
- # Copy Python script to container
7
- COPY x.py /app/app.py
8
  WORKDIR /app
9
- RUN pip install requests gradio
 
 
 
 
 
 
 
 
 
 
10
  EXPOSE 7860
 
11
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
3
  WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && \
7
+ apt-get install -y gcc && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+
11
+ # Copy source code
12
+ COPY app.py .
13
+
14
+ # Expose port 7860 for Flask
15
  EXPOSE 7860
16
+
17
  CMD ["python", "app.py"]