hisham-cmd commited on
Commit
fdee548
·
verified ·
1 Parent(s): 8559ca8

Delete Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -38
Dockerfile DELETED
@@ -1,38 +0,0 @@
1
- # Forced Rebuild 2026-03-16T13:52
2
- # Use an official Python runtime as a parent image
3
- FROM python:3.11-slim
4
-
5
- # Set the working directory in the container
6
- WORKDIR /app
7
-
8
- # Install system dependencies
9
- RUN apt-get update && apt-get install -y \
10
- build-essential \
11
- fonts-dejavu-core \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Copy the requirements file into the container
15
- COPY requirements.txt .
16
-
17
- # Install any needed packages specified in requirements.txt
18
- RUN pip install --no-cache-dir -r requirements.txt
19
-
20
- # Copy the rest of the application code into the container
21
- COPY . .
22
-
23
- # Hugging Face Spaces runs as user with UID 1000
24
- # Grant ownership of /app so SQLite DB can be created and written
25
- RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
26
- USER appuser
27
-
28
- # Expose port 7860 as required by Hugging Face Spaces
29
- EXPOSE 7860
30
-
31
- # Define environment variables
32
- ENV PYTHONUNBUFFERED=1
33
- ENV HOST=0.0.0.0
34
- ENV PORT=7860
35
- ENV DATABASE_URL=sqlite:///./vortex.db
36
-
37
- # Command to run the application
38
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips='*'"]