cv-matcher-app / Dockerfile
lilcoderi's picture
Update Dockerfile
16fc1e2 verified
raw
history blame contribute delete
443 Bytes
# Gunakan image Python yang ringan
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Copy file requirements
COPY ./requirements.txt /code/requirements.txt
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy semua file ke dalam container
COPY . .
# Jalankan Uvicorn (FastAPI) pada port 7860 (port standar HF Spaces)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]