Krishnasri2027 commited on
Commit
a7eb36a
·
verified ·
1 Parent(s): 7e92906

Upload Dockerfile.dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile.dockerfile +23 -0
Dockerfile.dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
+
3
+ # Install Python and pip
4
+ RUN apt-get update && apt-get install -y python3 python3-pip git
5
+
6
+ # Set python3 as default
7
+ RUN ln -s /usr/bin/python3 /usr/bin/python
8
+
9
+ # Set working directory
10
+ WORKDIR /app
11
+
12
+ # Copy local files to container
13
+ COPY . .
14
+
15
+ # Upgrade pip and install dependencies
16
+ RUN pip install --upgrade pip
17
+ RUN pip install -r requirements.txt
18
+
19
+ # (Optional) Set Hugging Face token — or use Secrets instead
20
+ ENV HF_TOKEN="your_token_here"
21
+
22
+ # Run your script when container starts
23
+ CMD ["python", "train.py"]