fugthchat commited on
Commit
e730642
·
verified ·
1 Parent(s): 6b31df9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,18 +1,19 @@
1
  # Use an NVIDIA CUDA image as the base
2
  FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
3
 
4
- # Install Python and pip
 
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  python3.10 \
7
  python3-pip \
 
 
 
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Set the working directory in the container
11
- WORKDIR /code
12
-
13
- # Install build tools needed for llama-cpp-python
14
- RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ make
15
-
16
  # Set environment variables for GPU-accelerated build
17
  ENV CMAKE_ARGS="-DGGML_CUDA=on"
18
  ENV FORCE_CMAKE=1
 
1
  # Use an NVIDIA CUDA image as the base
2
  FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
3
 
4
+ # Set the working directory in the container
5
+ WORKDIR /code
6
+
7
+ # Install Python, pip, and all required build tools in a single step
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
  python3.10 \
10
  python3-pip \
11
+ gcc \
12
+ g++ \
13
+ make \
14
+ cmake \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
 
 
 
 
 
17
  # Set environment variables for GPU-accelerated build
18
  ENV CMAKE_ARGS="-DGGML_CUDA=on"
19
  ENV FORCE_CMAKE=1