diff options
author | Bernat Vadell <hounter.caza@gmail.com> | 2023-03-17 10:47:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-17 10:47:06 +0100 |
commit | 2af23d30434a677c6416812eea52ccc0af65119c (patch) | |
tree | 900c5ac5ceef13f65194ca8334cde41ed3590c09 /.devops/full.Dockerfile | |
parent | 904d2a8d6acd667c9633138d45a361d40fbf76d0 (diff) |
🚀 Dockerize llamacpp (#132)
* feat: dockerize llamacpp
* feat: split build & runtime stages
* split dockerfile into main & tools
* add quantize into tool docker image
* Update .devops/tools.sh
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* add docker action pipeline
* change CI to publish at github docker registry
* fix name runs-on macOS-latest is macos-latest (lowercase)
* include docker versioned images
* fix github action docker
* fix docker.yml
* feat: include all-in-one command tool & update readme.md
---------
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to '.devops/full.Dockerfile')
-rw-r--r-- | .devops/full.Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.devops/full.Dockerfile b/.devops/full.Dockerfile new file mode 100644 index 0000000..618cddd --- /dev/null +++ b/.devops/full.Dockerfile @@ -0,0 +1,17 @@ +ARG UBUNTU_VERSION=22.04 + +FROM ubuntu:$UBUNTU_VERSION as build + +RUN apt-get update && \ + apt-get install -y build-essential python3 python3-pip + +RUN pip install --upgrade pip setuptools wheel \ + && pip install torch torchvision torchaudio sentencepiece numpy + +WORKDIR /app + +COPY . . + +RUN make + +ENTRYPOINT ["/app/.devops/tools.sh"]
\ No newline at end of file |