_umannn commited on
Commit
cfeb84b
·
1 Parent(s): 1a05617

Deploy Flask Batik Classifier

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -10
  2. requirements.txt +2 -4
Dockerfile CHANGED
@@ -1,20 +1,11 @@
1
- # Gunakan Python versi stabil
2
- FROM python:3.10
3
 
4
- # Set folder kerja di dalam container
5
  WORKDIR /app
6
 
7
- # Copy requirements.txt ke container
8
  COPY requirements.txt .
9
 
10
- # Install semua dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy semua file project (app.py, utils.py, model, dll)
14
  COPY . .
15
 
16
- # Expose port HuggingFace
17
- EXPOSE 7860
18
-
19
- # Jalankan Flask API
20
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9
 
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 ["python", "app.py"]
requirements.txt CHANGED
@@ -1,7 +1,5 @@
1
  flask
2
  flask-cors
3
- tensorflow==2.13.0
4
- pillow
5
- werkzeug
6
  numpy
7
- gunicorn
 
1
  flask
2
  flask-cors
3
+ tensorflow-cpu==2.16.1
 
 
4
  numpy
5
+ pillow