miike-ai commited on
Commit
d8e43fa
·
verified ·
1 Parent(s): 1b0bc86

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -3,6 +3,10 @@ FROM ubuntu:22.04
3
  # Set environment variables
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  ENV HOME=/root
 
 
 
 
6
 
7
  # Install dependencies, add deadsnakes PPA for Python 3.12
8
  RUN apt-get update && \
@@ -39,7 +43,6 @@ RUN npm install -g @anthropic-ai/claude-code @anthropic-ai/dxt
39
  RUN mkdir -p /workspace
40
 
41
  # Copy requirements file (if it exists)
42
- # This goes BEFORE copying the rest of the code for better caching
43
  COPY requirements.txt* /workspace/
44
 
45
  # Install Python packages if requirements.txt exists
 
3
  # Set environment variables
4
  ENV DEBIAN_FRONTEND=noninteractive
5
  ENV HOME=/root
6
+ # CUDA paths for when running on GPU (RunPod)
7
+ ENV CUDA_HOME=/usr/local/cuda
8
+ ENV PATH=${CUDA_HOME}/bin:${PATH}
9
+ ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
10
 
11
  # Install dependencies, add deadsnakes PPA for Python 3.12
12
  RUN apt-get update && \
 
43
  RUN mkdir -p /workspace
44
 
45
  # Copy requirements file (if it exists)
 
46
  COPY requirements.txt* /workspace/
47
 
48
  # Install Python packages if requirements.txt exists