File size: 467 Bytes
2eb956c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0009ac5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

# Set working directory
WORKDIR /code

# Copy requirements dan install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy seluruh file ke dalam container
COPY . /code

# Berikan hak akses ke folder cache (penting untuk Hugging Face)
RUN mkdir -p /code/cache && chmod -R 777 /code/cache
ENV GRADIO_TEMP_DIR="/code/cache"

# Jalankan aplikasi
CMD ["python", "app.py"]