Spaces:
Running

Kevs_Digital_bOS / Dockerfile
GitHub Actions
Deploy backend 0af7e8bc from KevsOno/Muzoscents-funnel-old
6d69baf
Raw History Blame Contribute Delete
710 Bytes
# Use a lightweight Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies required for sentence-transformers & cryptography
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (better layer caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application (Python files, HTML, JS, config, etc.)
COPY . .
# Expose the port used by FastAPI
EXPOSE 7860
# Command to start the server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]