HanifAlgamar commited on
Commit
66ce78b
·
1 Parent(s): 9929bc1

Adjust Python version in Dockerfile for TensorFlow compatibility

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -1
  2. requirements.txt +5 -5
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  # Gunakan base image Python yang sesuai. TensorFlow sering membutuhkan versi Python tertentu.
2
- FROM python:3.9-slim-buster
 
 
3
 
4
  # Set direktori kerja di dalam container
5
  WORKDIR /app
 
1
  # Gunakan base image Python yang sesuai. TensorFlow sering membutuhkan versi Python tertentu.
2
+ FROM python:3.8-slim-buster
3
+
4
+ # ... sisa Dockerfile Anda tetap sama ...
5
 
6
  # Set direktori kerja di dalam container
7
  WORKDIR /app
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- fastapi==0.109.0
2
- uvicorn==0.27.0
3
- tensorflow==2.10.0 # atau versi yang Anda yakin digunakan saat melatih model
4
- Pillow==10.2.0
5
- python-multipart==0.0.6 # Ini adalah versi saat ini
 
1
+ fastapi
2
+ uvicorn
3
+ tensorflow # Tanpa spesifikasi versi untuk debugging
4
+ Pillow
5
+ python-multipart