bistPredictor / Dockerfile
BIST Predictor Dev
Initial commit - Clean HF release
1802f47
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
ENV HOST=0.0.0.0
WORKDIR /app
# Install system dependencies (build tools if needed for timesfm/torch)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy backend requirements
COPY backend/requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir tsagentkit-timesfm[torch]
# Copy the core project
COPY backend/ ./backend/
COPY frontend/ ./frontend/
# Expose port (7860 required for Hugging Face Spaces)
EXPOSE 7860
# Start command
CMD ["python", "backend/main.py"]