parth-1 commited on
Commit
e4a8c57
·
verified ·
1 Parent(s): 6557131

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -17
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
- # Use the PyTorch CUDA image
2
- FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
3
-
4
- # Install system build tools for Unsloth
5
- RUN apt-get update && apt-get install -y \
6
- git \
7
- build-essential \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- WORKDIR /app
11
- COPY . .
12
-
13
- # Install the ML stack
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
- # Run the training script directly when the Space boots
17
- CMD ["python", "grpo_train.py"]
 
1
+ # Use the PyTorch CUDA image
2
+ FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
3
+
4
+ # Install system build tools for Unsloth
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /app
11
+ COPY . .
12
+
13
+ # Install the ML stack
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Run the training script directly when the Space boots
17
+ CMD ["/bin/bash", "-c", "python -m http.server 7860 & python grpo_train.py"]