JaynilJaiswal commited on
Commit
23dcabd
·
verified ·
1 Parent(s): 593c0eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -14,20 +14,16 @@ COPY ./requirements.txt /code/requirements.txt
14
  RUN apt-get update && \
15
  apt-get install -y --no-install-recommends curl && \
16
  pip install --no-cache-dir --upgrade pip && \
17
- pip install --no-cache-dir -r /code/requirements.txt && \
18
- mkdir -p /data && \
19
- echo "Checking for model file in /data..." && \
20
  if [ ! -f /data/zephyr-7b-beta.Q4_K_M.gguf ]; then \
21
  echo "Model file not found. Downloading..." && \
22
  curl -L -o /data/zephyr-7b-beta.Q4_K_M.gguf https://huggingface.co/TheBloke/zephyr-7B-beta-GGUF/resolve/main/zephyr-7b-beta.Q4_K_M.gguf && \
23
  echo "Download complete."; \
24
  else \
25
  echo "Model file already exists."; \
26
- fi && \
27
- # Clean up apt cache
28
- apt-get clean && \
29
- rm -rf /var/lib/apt/lists/*
30
-
31
  # Copy the rest of the application code from the build context to the container
32
  COPY . /code/
33
 
 
14
  RUN apt-get update && \
15
  apt-get install -y --no-install-recommends curl && \
16
  pip install --no-cache-dir --upgrade pip && \
17
+ pip install --no-cache-dir -r /code/requirements.txt
18
+
19
+ RUN echo "Checking for model file in /data..." && \
20
  if [ ! -f /data/zephyr-7b-beta.Q4_K_M.gguf ]; then \
21
  echo "Model file not found. Downloading..." && \
22
  curl -L -o /data/zephyr-7b-beta.Q4_K_M.gguf https://huggingface.co/TheBloke/zephyr-7B-beta-GGUF/resolve/main/zephyr-7b-beta.Q4_K_M.gguf && \
23
  echo "Download complete."; \
24
  else \
25
  echo "Model file already exists."; \
26
+ fi
 
 
 
 
27
  # Copy the rest of the application code from the build context to the container
28
  COPY . /code/
29