Move from zip to tar.gz

This commit is contained in:
2026-02-05 20:01:33 +01:00
förälder 6ae56c9cc1
incheckning da4fe079bd

Visa fil

@@ -11,7 +11,7 @@ USER root
EXPOSE 8090 EXPOSE 8090
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y curl unzip grep sed git ffmpeg nano python3-pip python3 python3-wheel \ && apt-get install -y curl tar grep sed git ffmpeg nano python3-pip python3 python3-wheel \
&& pip install --break-system-packages --upgrade setuptools \ && pip install --break-system-packages --upgrade setuptools \
&& pip install --break-system-packages -U "huggingface_hub[cli]" \ && pip install --break-system-packages -U "huggingface_hub[cli]" \
&& if [ -f requirements.txt ]; then pip install --break-system-packages -r requirements.txt; fi \ && if [ -f requirements.txt ]; then pip install --break-system-packages -r requirements.txt; fi \
@@ -26,9 +26,9 @@ WORKDIR /app
RUN VERSION=$(curl -s https://api.github.com/repos/ggml-org/llama.cpp/releases/latest | grep '"tag_name"' | head -1 | sed 's/.*"tag_name": "\([^"]*\)".*/\1/') \ RUN VERSION=$(curl -s https://api.github.com/repos/ggml-org/llama.cpp/releases/latest | grep '"tag_name"' | head -1 | sed 's/.*"tag_name": "\([^"]*\)".*/\1/') \
&& echo "Last llama.cpp version: $VERSION" \ && echo "Last llama.cpp version: $VERSION" \
&& curl -L https://github.com/ggml-org/llama.cpp/releases/download/${VERSION}/llama-${VERSION}-bin-ubuntu-vulkan-x64.zip -o llama.zip \ && curl -L https://github.com/ggml-org/llama.cpp/releases/download/${VERSION}/llama-${VERSION}-bin-ubuntu-vulkan-x64.tar.gz -o llama.tar.gz \
&& unzip -j llama.zip -d . \ && tar -xzf llama.tar.gz -C . \
&& rm llama.zip && rm llama.tar.gz
RUN chmod +x /app/llama-server RUN chmod +x /app/llama-server