minzo456 commited on
Commit
63bc816
·
verified ·
1 Parent(s): e93d418

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -3
Dockerfile CHANGED
@@ -1,6 +1,19 @@
1
- FROM python:3.9
 
 
 
 
 
 
 
2
  WORKDIR /code
3
- COPY ./requirements.txt /code/requirements.txt
4
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
5
  COPY . .
 
 
6
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
+
3
+ # Build essentials install කිරීම (Compiling වේගවත් කිරීමට)
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ python3-dev \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /code
10
+
11
+ # Requirements install කිරීම
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # සියලුම ගොනු කොපි කිරීම
16
  COPY . .
17
+
18
+ # Flask app එක run කිරීම (Hugging Face port 7860)
19
  CMD ["python", "app.py"]