Aleksandr Maiorov commited on
Commit
3e20bb6
·
1 Parent(s): 1d7ae66

- запуск unicorn заменен на llama-server

Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -6,17 +6,17 @@ ENV LLAMA_ARG_MODEL_URL=https://huggingface.co/Vikhrmodels/Vikhr-Qwen-2.5-1.5B-I
6
  LLAMA_ARG_N_PARALLEL=2 \
7
  LLAMA_ARG_ENDPOINT_METRICS=1 \
8
  LLAMA_ARG_PORT=8080
9
- #RUN ./llama-server -mu https://huggingface.co/Vikhrmodels/Vikhr-Qwen-2.5-1.5B-Instruct-GGUF/resolve/main/Vikhr-Qwen-2.5-1.5b-Instruct-Q8_0.gguf -c 2048 --port 7860 --host 0.0.0.0
10
 
11
- FROM python:3.9
 
12
  RUN useradd -m -u 1000 user
13
  USER user
14
  ENV PATH="/home/user/.local/bin:$PATH"
15
- WORKDIR /app
16
 
17
  COPY --chown=user ./requirements.txt requirements.txt
18
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
 
20
  COPY --chown=user . /app
21
 
22
- CMD ["llama-server", "-mu", "https://huggingface.co/Vikhrmodels/Vikhr-Qwen-2.5-1.5B-Instruct-GGUF/resolve/main/Vikhr-Qwen-2.5-1.5b-Instruct-Q8_0.gguf", "--host", "0.0.0.0", "--port", "7860"]
 
6
  LLAMA_ARG_N_PARALLEL=2 \
7
  LLAMA_ARG_ENDPOINT_METRICS=1 \
8
  LLAMA_ARG_PORT=8080
9
+ RUN ./llama-server --host 0.0.0.0
10
 
11
+ WORKDIR /app
12
+ FROM python:3.11-slim as builder
13
  RUN useradd -m -u 1000 user
14
  USER user
15
  ENV PATH="/home/user/.local/bin:$PATH"
 
16
 
17
  COPY --chown=user ./requirements.txt requirements.txt
18
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
 
20
  COPY --chown=user . /app
21
 
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]