QuantumShield / backend /Dockerfile
SantoshKumar1310's picture
Upload folder using huggingface_hub
63590dc verified
raw
history blame contribute delete
581 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend code
COPY . .
# Create directories for models and data (will be mounted as volumes)
RUN mkdir -p /app/models /app/data
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]