chronos-predict-api / Dockerfile
MuhammadHafizFassya's picture
Update Dockerfile
ba17e0a verified
raw
history blame contribute delete
613 Bytes
# Use Python 3.10 as base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies (Sudah diperbaiki)
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port (Hugging Face Spaces uses 7860 by default)
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]