Fred808 commited on
Commit
caea0ad
·
verified ·
1 Parent(s): d0cf69c

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -29
Dockerfile CHANGED
@@ -1,29 +1,29 @@
1
- FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive
4
-
5
- # Python + dependencies
6
- RUN apt-get update && apt-get install -y python3 python3-pip git && \
7
- pip3 install --upgrade pip
8
-
9
- # Set working dir
10
- WORKDIR /app
11
-
12
- # Copy and install requirements
13
- COPY requirements.txt ./
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
- # Copy app code
17
- COPY . .
18
-
19
- # ybyjngamhtcuaupc gsmt
20
-
21
- # Make the entire /app directory fully writeable for all users
22
- RUN chmod -R 777 /app
23
-
24
- # Ensure the app runs as the same user as the Space UI
25
- RUN useradd -m -u 1000 user
26
- USER user
27
-
28
- # Launch cursor_tracker.py on container start
29
- CMD ["python3", "cursor_tracker.py"]
 
1
+ FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # Python + dependencies
6
+ RUN apt-get update && apt-get install -y python3 python3-pip git && \
7
+ pip3 install --upgrade pip
8
+
9
+ # Set working dir
10
+ WORKDIR /app
11
+
12
+ # Copy and install requirements
13
+ COPY requirements.txt ./
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy app code
17
+ COPY . .
18
+
19
+ # ybyjngamhtcuaupc gsmt
20
+
21
+ # Make the entire /app directory fully writeable for all users
22
+ RUN chmod -R 777 /app
23
+
24
+ # Ensure the app runs as the same user as the Space UI
25
+ RUN useradd -m -u 1000 user
26
+ USER user
27
+
28
+ # Launch FastAPI download server on container start
29
+ CMD ["uvicorn", "download_api:app", "--host", "0.0.0.0", "--port", "7860"]