Krishnasri2027 commited on
Commit
cb23a5f
·
verified ·
1 Parent(s): 5c28c77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -12
Dockerfile CHANGED
@@ -1,28 +1,16 @@
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
- # Create writable directories
20
  RUN mkdir -p /.cache && chmod a+rwxt /.cache
21
  RUN mkdir -p /.triton && chmod a+rwxt /.triton
22
  RUN mkdir -p /.results && chmod a+rwxt /.results
23
 
24
- # Fix output directory permission issue
25
- RUN sed -i "s|output_dir = \"./results\"|output_dir = \"/.results\"|" train.py
26
-
27
- # Run training script
28
  CMD ["python", "train.py"]
 
1
  FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
 
 
3
  RUN apt-get update && apt-get install -y python3 python3-pip git
 
 
4
  RUN ln -s /usr/bin/python3 /usr/bin/python
5
 
 
6
  WORKDIR /app
 
 
7
  COPY . .
8
 
 
9
  RUN pip install --upgrade pip
10
  RUN pip install -r requirements.txt
11
 
 
12
  RUN mkdir -p /.cache && chmod a+rwxt /.cache
13
  RUN mkdir -p /.triton && chmod a+rwxt /.triton
14
  RUN mkdir -p /.results && chmod a+rwxt /.results
15
 
 
 
 
 
16
  CMD ["python", "train.py"]