Ferdinann commited on
Commit
2eb956c
·
verified ·
1 Parent(s): 0009ac5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -18
Dockerfile CHANGED
@@ -1,19 +1,18 @@
1
- # Gunakan image Python 3.9 sebagai base
2
- FROM python:3.9
3
-
4
- # Set working directory
5
- WORKDIR /code
6
-
7
- # Copy requirements dan install dependencies
8
- COPY ./requirements.txt /code/requirements.txt
9
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
-
11
- # Copy seluruh file ke dalam container
12
- COPY . /code
13
-
14
- # Berikan hak akses ke folder cache (penting untuk Hugging Face)
15
- RUN mkdir -p /code/cache && chmod -R 777 /code/cache
16
- ENV GRADIO_TEMP_DIR="/code/cache"
17
-
18
- # Jalankan aplikasi
19
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10
2
+
3
+ # Set working directory
4
+ WORKDIR /code
5
+
6
+ # Copy requirements dan install dependencies
7
+ COPY ./requirements.txt /code/requirements.txt
8
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+
10
+ # Copy seluruh file ke dalam container
11
+ COPY . /code
12
+
13
+ # Berikan hak akses ke folder cache (penting untuk Hugging Face)
14
+ RUN mkdir -p /code/cache && chmod -R 777 /code/cache
15
+ ENV GRADIO_TEMP_DIR="/code/cache"
16
+
17
+ # Jalankan aplikasi
 
18
  CMD ["python", "app.py"]