leonarb commited on
Commit
6745900
·
verified ·
1 Parent(s): 6065374

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -49
Dockerfile DELETED
@@ -1,49 +0,0 @@
1
- # Use Python 3.11 slim base image
2
- FROM python:3.11-slim
3
-
4
- # Avoid interactive prompts
5
- ENV DEBIAN_FRONTEND=noninteractive \
6
- PYTHONUNBUFFERED=1 \
7
- PIP_NO_CACHE_DIR=1
8
-
9
- # Install system packages
10
- RUN apt-get update && apt-get install -y \
11
- git \
12
- curl \
13
- build-essential \
14
- ffmpeg \
15
- libsm6 \
16
- libxext6 \
17
- libgl1-mesa-glx \
18
- poppler-utils \
19
- tesseract-ocr \
20
- && rm -rf /var/lib/apt/lists/*
21
-
22
- # Install git-lfs (olmocr uses some models hosted on LFS)
23
- RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
24
- apt-get install -y git-lfs && git lfs install
25
-
26
- # Set workdir
27
- WORKDIR /app
28
-
29
- # Copy requirements and install Python packages
30
- COPY requirements.txt .
31
- RUN pip install -r requirements.txt
32
-
33
- # Install frpc binary for Gradio tunnels
34
- RUN curl -L https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 \
35
- -o /usr/local/lib/python3.11/site-packages/gradio/frpc_linux_amd64_v0.2 && \
36
- chmod +x /usr/local/lib/python3.11/site-packages/gradio/frpc_linux_amd64_v0.2
37
-
38
- # Copy rest of the application
39
- COPY . .
40
-
41
- # Expose port (Gradio runs on 7860 by default, but HF Spaces handles routing)
42
- EXPOSE 7860
43
-
44
- # Run the Gradio app
45
- CMD ["python", "app.py"]
46
-
47
- ENV XDG_CACHE_HOME=/tmp/xdg_cache
48
- ENV MPLCONFIGDIR=/tmp/mplcache
49
-