jira_api / Dockerfile
Rudraaaa76's picture
Intial commit for HF deployment
c2cb41b
raw
history blame contribute delete
624 Bytes
# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application
COPY . .
# Expose port 7860 (Hugging Face Spaces default)
EXPOSE 7860
# Command to run the application
# Hugging Face Spaces expects the app to run on 0.0.0.0:7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]