Spaces:
Running
Running
# pick your favorite slim Python base | |
FROM python:3.10-slim | |
WORKDIR /app | |
# install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# copy app and config files | |
COPY app ./app | |
COPY params.cfg . | |
# expose both FastAPI and Gradio ports | |
EXPOSE 7860 7861 | |
# launch with unbuffered output | |
CMD ["python", "-u", "app/main.py"] |