datfid-master / Dockerfile
DrValera's picture
Added significance level as input
b9b23d9 verified
Raw
History Blame Contribute Delete
427 Bytes
# Dockerfile (public proxy)
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy code
COPY main.py .
# Hugging Face expects the app to listen on port 7860
ENV PORT=7860
EXPOSE 7860
# Launch FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]