KevinX-Penn28 commited on
Commit
80ff3af
·
1 Parent(s): f3e3f11
Files changed (2) hide show
  1. Dockerfile +28 -0
  2. README.md +3 -5
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.0-cudnn9-devel-ubuntu22.04
2
+ RUN useradd -m -u 1000 user
3
+ WORKDIR /app
4
+
5
+ ENV PYTHONUNBUFFERED=1 \
6
+ PIP_NO_CACHE_DIR=1
7
+
8
+ # System dependencies required for compiling GroundingDINO ops and running FFmpeg
9
+ RUN apt-get update && \
10
+ apt-get install -y --no-install-recommends \
11
+ git \
12
+ build-essential \
13
+ ninja-build \
14
+ ffmpeg && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install Python dependencies first to leverage Docker layer caching
18
+ COPY --chown=user ./requirements.txt requirements.txt
19
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
20
+ RUN pip install --upgrade pip && \
21
+ pip install -r requirements.txt
22
+
23
+ # Copy the rest of the application
24
+ COPY . .
25
+
26
+ EXPOSE 7860
27
+
28
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,12 +3,10 @@ title: TestingVine
3
  emoji: 🐠
4
  colorFrom: yellow
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.49.1
8
- app_file: app.py
9
- pinned: false
10
  license: mit
11
- short_description: a
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
3
  emoji: 🐠
4
  colorFrom: yellow
5
  colorTo: purple
6
+ sdk: docker
7
+ app_port: 7860
 
 
8
  license: mit
9
+ short_description: a vine testing space
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference