FROM python:3.10-alpine WORKDIR /code # Di Alpine, kita pakai apk add dan build-base (pengganti apt-get dan build-essential) RUN apk add --no-cache build-base COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . # Beri akses cache untuk Hugging Face RUN mkdir -p /code/cache && chmod 777 /code/cache CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]