weatherhack-api / Dockerfile
Ig0tU
fix: integrate dashboard into main.py and switch to single-port 7860 for HF
d773970
raw
history blame contribute delete
389 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . .
# Expose only the primary port for HF Space
EXPOSE 7860
# Run FastAPI on the primary port
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]