Spaces:
Sleeping
Sleeping
File size: 858 Bytes
b122c8b b619547 ee5cb02 aad96ec 2769aab ee5cb02 5defc52 ee5cb02 6e863ed 5defc52 d379f28 aad96ec 8ab57b9 b619547 2769aab b619547 2769aab b619547 d379f28 b122c8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV LLAMA_SERVER=/opt/llama-server-cpu-x86_64/llama-server
ENV LD_LIBRARY_PATH=/opt/llama-server-cpu-x86_64/lib:${LD_LIBRARY_PATH}
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
COPY bin/llama-server-cpu-x86_64.tar.gz /opt/llama-server-cpu-x86_64.tar.gz
RUN tar -xzf /opt/llama-server-cpu-x86_64.tar.gz -C /opt && \
chmod +x /opt/llama-server-cpu-x86_64/llama-server && \
ls -lh /opt/llama-server-cpu-x86_64 && \
ls -lh /opt/llama-server-cpu-x86_64/lib
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install -r requirements.txt
COPY app.py ./app.py
COPY gigscan ./gigscan
EXPOSE 7860
CMD ["python", "app.py"]
|