Spaces:
Sleeping
Sleeping
Delete Dockerfile with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738# Forced Rebuild 2026-03-16T13:52
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file into the container
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container
COPY . .
# Hugging Face Spaces runs as user with UID 1000
# Grant ownership of /app so SQLite DB can be created and written
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
USER appuser
# Expose port 7860 as required by Hugging Face Spaces
EXPOSE 7860
# Define environment variables
ENV PYTHONUNBUFFERED=1
ENV HOST=0.0.0.0
ENV PORT=7860
ENV DATABASE_URL=sqlite:///./vortex.db
# Command to run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips='*'"]DockerfileDeleted-38