Ali2206 commited on
Commit
6943e92
·
verified ·
1 Parent(s): fc6bb9a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -3,6 +3,7 @@ FROM nvidia/cuda:12.1.1-base-ubuntu22.04
3
  # Set environment variables
4
  ENV PYTHONDONTWRITEBYTECODE 1
5
  ENV PYTHONUNBUFFERED 1
 
6
  ENV HF_HOME=/data/hf_cache
7
  ENV TRANSFORMERS_CACHE=/data/hf_cache/txagent_models
8
  ENV MPLCONFIGDIR=/tmp/matplotlib
@@ -19,12 +20,6 @@ RUN apt-get update && apt-get install -y \
19
  # Create and set working directory
20
  WORKDIR /app
21
 
22
- # Install specific versions of PyTorch and vLLM with CUDA 12.1 support
23
- RUN pip install --no-cache-dir \
24
- torch==2.1.2+cu121 \
25
- --extra-index-url https://download.pytorch.org/whl/cu121
26
- RUN pip install --no-cache-dir vllm==0.3.0
27
-
28
  # Create necessary directories
29
  RUN mkdir -p /data/hf_cache/txagent_models \
30
  /data/hf_cache/tool_cache \
@@ -32,7 +27,7 @@ RUN mkdir -p /data/hf_cache/txagent_models \
32
  /data/hf_cache/reports \
33
  /tmp/matplotlib
34
 
35
- # Copy requirements first to leverage Docker cache
36
  COPY requirements.txt .
37
  RUN pip install --no-cache-dir -r requirements.txt
38
 
 
3
  # Set environment variables
4
  ENV PYTHONDONTWRITEBYTECODE 1
5
  ENV PYTHONUNBUFFERED 1
6
+ ENV PYTHONPATH=/app/src
7
  ENV HF_HOME=/data/hf_cache
8
  ENV TRANSFORMERS_CACHE=/data/hf_cache/txagent_models
9
  ENV MPLCONFIGDIR=/tmp/matplotlib
 
20
  # Create and set working directory
21
  WORKDIR /app
22
 
 
 
 
 
 
 
23
  # Create necessary directories
24
  RUN mkdir -p /data/hf_cache/txagent_models \
25
  /data/hf_cache/tool_cache \
 
27
  /data/hf_cache/reports \
28
  /tmp/matplotlib
29
 
30
+ # Install Python dependencies
31
  COPY requirements.txt .
32
  RUN pip install --no-cache-dir -r requirements.txt
33