aegis-war-predictor / Dockerfile
gsstec's picture
Upload Dockerfile with huggingface_hub
e0c9228 verified
raw
history blame contribute delete
471 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies for TabNet/Torch
RUN apt-get update && apt-get install -y libgomp1 && rm -rf /var/lib/apt/lists/*
# Install Python requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
# Expose the default Hugging Face Space port
EXPOSE 7860
# Start the API
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]