23 lines
688 B
Docker
23 lines
688 B
Docker
|
################################################################
|
||
|
#
|
||
|
# Project: llamafile
|
||
|
#
|
||
|
# docker build -t llamafile .
|
||
|
# docker run -p 8102:8080 -it --name llamafile -t llamafile
|
||
|
#
|
||
|
################################################################
|
||
|
|
||
|
FROM ubuntu:jammy-20231128
|
||
|
|
||
|
# set the working directory
|
||
|
WORKDIR /app
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install wget -y
|
||
|
|
||
|
# download and prepare llamafile
|
||
|
RUN wget https://huggingface.co/jartine/llava-v1.5-7B-GGUF/resolve/main/llava-v1.5-7b-q4-server.llamafile?download=true -O /app/llava-v1.5-7b-q4-server.llamafile
|
||
|
RUN chmod +x /app/llava-v1.5-7b-q4-server.llamafile
|
||
|
|
||
|
COPY ./init.sh /app
|
||
|
CMD ["bash", "init.sh"]
|