rahul7star commited on
Commit
fe3d7e3
·
verified ·
1 Parent(s): 9958e65

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
2
+
3
+ # System utilities
4
+ RUN apt-get update && apt-get install -y \
5
+ git ffmpeg libsm6 libxext6 curl wget
6
+
7
+ # Set work directory
8
+ WORKDIR /app
9
+
10
+ # Copy code
11
+ COPY . /app
12
+
13
+ # Install Python packages
14
+ RUN pip install --upgrade pip
15
+ RUN pip install -r requirements.txt
16
+ RUN pip install huggingface_hub
17
+
18
+ # Make the script executable
19
+ RUN chmod +x /app/start.sh
20
+
21
+ # Run startup script
22
+ ENTRYPOINT ["bash", "/app/start.sh"]