BEASTZZZ commited on
Commit
117271a
·
verified ·
1 Parent(s): e951ffa

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -34
Dockerfile DELETED
@@ -1,34 +0,0 @@
1
- # NOT USED in the default deploy path (see README.md — that path uses
2
- # sdk: gradio, which HF's free ZeroGPU exception covers for personal
3
- # accounts). Docker Spaces require a paid HF plan as of mid-2026.
4
- #
5
- # Kept here for two cases: (1) you're on a paid HF plan and prefer
6
- # Docker SDK's full control, or (2) you're deploying this backend to
7
- # any other Docker-based host (Render, Railway, Fly.io, etc.) instead.
8
- # If using this, remove/ignore the `if __name__ == "__main__"` uvicorn
9
- # call at the bottom of app.py and run uvicorn from CMD as before, since
10
- # a Docker host won't need the Gradio-mounting shim.
11
- FROM python:3.11-slim
12
-
13
- WORKDIR /app
14
-
15
- # System deps for lxml / bs4
16
- RUN apt-get update && apt-get install -y --no-install-recommends \
17
- build-essential \
18
- && rm -rf /var/lib/apt/lists/*
19
-
20
- COPY requirements.txt .
21
- RUN pip install --no-cache-dir -r requirements.txt
22
-
23
- COPY . .
24
-
25
- # HF Spaces expects the container to listen on 7860
26
- ENV PORT=7860
27
- EXPOSE 7860
28
-
29
- # data/ holds the SQLite file. On free HF Spaces this disk is EPHEMERAL —
30
- # it resets on every Space rebuild/sleep unless you enable "Persistent Storage"
31
- # (paid) in Space settings. See README.md "Known gaps" for the honest caveat.
32
- RUN mkdir -p /app/data
33
-
34
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]