devops-pipeline-env / Dockerfile
yashash045's picture
Upload folder using huggingface_hub
48d5d8f verified
raw
history blame contribute delete
442 Bytes
FROM python:3.11-slim
WORKDIR /app
# Enable the Gradio web interface for testing
ENV ENABLE_WEB_INTERFACE=true
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy entire project
COPY . .
# Install the package itself so absolute imports work
RUN pip install --no-cache-dir -e .
EXPOSE 8000
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]