aufgenommen
Code: Select all
FROM ollama/ollama AS builder
# Add any necessary dependencies
RUN apt-get update && apt-get install -y curl
# Install wait4x
# RUN curl -sSL https://github.com/leoetlino/wait4x/releases/download/v1.0.0/wait4x-linux-amd64 -o /usr/local/bin/wait4x && chmod +x /usr/local/bin/wait4x
# Download and extract wait4x v3.2.0 (x86_64)
# RUN curl -L -o /tmp/wait4x.tar.gz https://github.com/wait4x/wait4x/releases/download/v3.2.0/wait4x-linux-x86_64.tar.gz && \
# tar -xzf /tmp/wait4x.tar.gz -C /usr/local/bin && \
# chmod +x /usr/local/bin/wait4x
# # Download wait4x binary directly (it's a raw binary, not a tarball)
# RUN curl -L https://github.com/wait4x/wait4x/releases/download/v3.2.0/wait4x-linux-x86_64 -o /usr/local/bin/wait4x && \
# chmod +x /usr/local/bin/wait4x
# # Download the correct wait4x binary for amd64
# RUN curl -L https://github.com/wait4x/wait4x/releases/download/v3.2.0/wait4x-linux-amd64 -o /usr/local/bin/wait4x && \
# chmod +x /usr/local/bin/wait4x && \
# file /usr/local/bin/wait4x
# # Download wait4x binary (linux-amd64) and make it executable
# RUN curl -sSL https://github.com/wait4x/wait4x/releases/download/v3.2.0/wait4x-linux-amd64 -o /usr/local/bin/wait4x && \
# chmod +x /usr/local/bin/wait4x && \
# ls -l /usr/local/bin/wait4x
# Download wait4x binary (using the correct URL and architecture)
RUN curl -sSL https://github.com/atkrad/wait4x/releases/download/v2.12.0/wait4x-linux-amd64 -o /usr/local/bin/wait4x && \
chmod +x /usr/local/bin/wait4x
# Verify wait4x is executable
RUN ls -l /usr/local/bin/wait4x && \
/usr/local/bin/wait4x --version
# Accept model name as argument
ARG MODEL_NAME=llama3.2-vision
RUN ollama serve & \
wait4x http http://127.0.0.1:11434 -t 30s && \
ollama pull ${MODEL_NAME}
FROM ollama/ollama
ARG MODEL_NAME=llama3.2-vision
COPY --from=builder /root/.ollama /root/.ollama
CMD ["serve"]
zu bauen
Code: Select all
docker build --network=host --build-arg "llava" -t "myimage" .Ich habe entweder 0.089/usr/local/bin/wait4x: 1: nicht: nicht gefunden oder in einem Fall
Code: Select all
> [builder 3/4] RUN curl -L -o /tmp/wait4x.tar.gz https://github.com/wait4x/wait4x/releases/download/v3.2.0/wait4x-linux-x86_64.tar.gz && tar -xzf /tmp/wait4x.tar.gz -C /usr/local/bin && chmod +x /usr/local/bin/wait4x:
0.124 % Total % Received % Xferd Average Speed Time Time Time Current
0.124 Dload Upload Total Spent Left Speed
100 9 100 9 0 0 15 0 --:--:-- --:--:-- --:--:-- 15
0.718
0.718 gzip: stdin: not in gzip format
0.718 tar: Child returned status 1
0.718 tar: Error is not recoverable: exiting now
------
Dockerfile:11
Mobile version