Muhammadidrees commited on
Commit
ac6faad
·
verified ·
1 Parent(s): 907224a

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -61
Dockerfile DELETED
@@ -1,61 +0,0 @@
1
- FROM docker.io/library/python:3.11
2
- # Install system dependencies
3
- RUN apt-get update && apt-get install -y \
4
- git \
5
- git-lfs \
6
- ffmpeg \
7
- libsm6 \
8
- libxext6 \
9
- cmake \
10
- rsync \
11
- libgl1 \
12
- && rm -rf /var/lib/apt/lists/* \
13
- && git lfs install
14
-
15
- # Upgrade pip and install base packages
16
- RUN pip install --no-cache-dir pip -U && \
17
- pip install --no-cache-dir \
18
- datasets \
19
- "huggingface-hub>=0.19" \
20
- "hf_xet>=1.0.0,<2.0.0" \
21
- "hf-transfer>=0.1.4" \
22
- "protobuf<4" \
23
- "click<8.1" \
24
- "pydantic==2.10.6"
25
-
26
- # Set working directory
27
- WORKDIR /home/user/app
28
-
29
- # Install fakeroot and setup user
30
- RUN apt-get update && apt-get install -y fakeroot && \
31
- mv /usr/bin/apt-get /usr/bin/.apt-get && \
32
- echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && \
33
- chmod +x /usr/bin/apt-get && \
34
- rm -rf /var/lib/apt/lists/* && \
35
- useradd -m -u 1000 user
36
-
37
- # Install Node.js
38
- RUN apt-get update && \
39
- apt-get install -y curl && \
40
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
41
- apt-get install -y nodejs && \
42
- rm -rf /var/lib/apt/lists/* && apt-get clean
43
-
44
- # Copy and install requirements
45
- COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt
46
- RUN pip install --no-cache-dir -r /tmp/requirements.txt
47
-
48
- # Copy application files
49
- COPY --chown=1000:1000 . .
50
-
51
- # Switch to user
52
- USER user
53
-
54
- # Expose port (adjust as needed)
55
- EXPOSE 7860
56
-
57
- # Set environment variables
58
- ENV GRADIO_SERVER_NAME="0.0.0.0"
59
-
60
- # Run the application (adjust command as needed)
61
- CMD ["python", "app.py"]