AI-RESEARCHER-2024 commited on
Commit
f9e7e58
1 Parent(s): d7b6100

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -9,13 +9,13 @@ ENV PATH="/home/appuser/.local/bin:${PATH}"
9
  ENV HF_HOME="/home/appuser/.cache/huggingface"
10
 
11
  # Install system dependencies
12
- RUN apt-get update && apt-get install -y \
13
- build-essential \
14
- cmake \
15
- git \
16
- wget \
17
- curl \
18
- && rm -rf /var/lib/apt/lists/*
19
 
20
  # Create a non-root user
21
  RUN useradd -m -u 1000 appuser && \
@@ -36,9 +36,9 @@ RUN mkdir -p $APP_HOME/.chainlit/files && \
36
  mkdir -p $HF_HOME
37
 
38
  # Download the model using huggingface-cli
39
- RUN pip install --user --no-cache-dir huggingface_hub && \
40
- huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf --local-dir $APP_HOME/models/ && \
41
- mv $APP_HOME/models/Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf $APP_HOME/models/llama-model.gguf
42
 
43
  # Install Python dependencies
44
  RUN pip install --user --no-cache-dir -r requirements.txt
 
9
  ENV HF_HOME="/home/appuser/.cache/huggingface"
10
 
11
  # Install system dependencies
12
+ # RUN apt-get update && apt-get install -y \
13
+ # build-essential \
14
+ # cmake \
15
+ # git \
16
+ # wget \
17
+ # curl \
18
+ # && rm -rf /var/lib/apt/lists/*
19
 
20
  # Create a non-root user
21
  RUN useradd -m -u 1000 appuser && \
 
36
  mkdir -p $HF_HOME
37
 
38
  # Download the model using huggingface-cli
39
+ # RUN pip install --user --no-cache-dir huggingface_hub && \
40
+ # huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf --local-dir $APP_HOME/models/ && \
41
+ # mv $APP_HOME/models/Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf $APP_HOME/models/llama-model.gguf
42
 
43
  # Install Python dependencies
44
  RUN pip install --user --no-cache-dir -r requirements.txt