parth-1 commited on
Commit
a395d03
·
verified ·
1 Parent(s): c0ec9d7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -14
Dockerfile CHANGED
@@ -1,23 +1,17 @@
1
- FROM python:3.11-slim
2
 
3
- RUN apt-get update \
4
- && apt-get install -y --no-install-recommends curl \
5
- && rm -rf /var/lib/apt/lists/*
 
6
 
7
- RUN useradd -m -u 1000 user
8
  ENV USER=user
9
  ENV HOME=/home/user
10
 
11
  WORKDIR /app
12
-
13
- COPY pyproject.toml requirements.txt ./
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
  COPY . .
17
- RUN pip install --no-cache-dir --no-deps .
18
 
19
- RUN chmod +x apps/start.sh
20
-
21
- EXPOSE 8000
22
 
23
- CMD ["./apps/start.sh"]
 
1
+ FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
2
 
3
+ RUN apt-get update && apt-get install -y \
4
+ git \
5
+ build-essential \
6
+ && rm -rf /var/lib/apt/lists/*
7
 
8
+ RUN useradd -m -u 1000 user || true
9
  ENV USER=user
10
  ENV HOME=/home/user
11
 
12
  WORKDIR /app
 
 
 
 
13
  COPY . .
 
14
 
15
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
16
 
17
+ CMD ["/bin/bash", "-c", "python -m http.server 7860 & python grpo_train.py"]