Leonydis137 commited on
Commit
952345d
·
verified ·
1 Parent(s): db3da06

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -6,23 +6,16 @@ RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  cmake \
8
  libopenblas-dev \
9
- liblapack-dev \
10
- libjpeg-dev \
11
- zlib1g-dev
12
 
13
  # Python dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -U pip && \
16
  pip install --no-cache-dir -r requirements.txt
17
 
18
- # Pre-download models
19
- RUN python -c "from huggingface_hub import snapshot_download; \
20
- snapshot_download(repo_id='TheBloke/Llama-2-7B-Chat-GGUF', \
21
- local_dir='models/llama', \
22
- allow_patterns='*.Q4_K_M.gguf')"
23
-
24
- # Copy application
25
- COPY . .
26
 
27
  # HF Spaces port
28
  EXPOSE 7860
 
6
  build-essential \
7
  cmake \
8
  libopenblas-dev \
9
+ liblapack-dev
 
 
10
 
11
  # Python dependencies
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -U pip && \
14
  pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Set working directory
17
+ WORKDIR /app
18
+ COPY . /app
 
 
 
 
 
19
 
20
  # HF Spaces port
21
  EXPOSE 7860