From 6ef5cef8dd3e40efcaff72fc0a48cc3d13fc6175 Mon Sep 17 00:00:00 2001 From: Albert Bertram Date: Thu, 25 Apr 2024 11:31:06 -0400 Subject: [PATCH] Adding a python directory to try a new image. --- .github/workflows/build-image.yml | 11 +++++++++-- py/Dockerfile | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 py/Dockerfile diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index c610ca36..a80e5f91 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -3,10 +3,17 @@ name: Build Images on: push jobs: - build-image: + build-image-pull-model: uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1 with: - image_name: pull-model + image_name: genai-stack--pull-model tag: ${{ github.sha }} dockerfile: pull_model.Dockerfile secrets: inherit + + build-image-python: + uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@v1 + with: + image_name: genai-stack--python + tag: ${{ github.sha }} + dockerfile: py/Dockerfile diff --git a/py/Dockerfile b/py/Dockerfile new file mode 100644 index 00000000..0b3b0bab --- /dev/null +++ b/py/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.13.0a6 + +RUN apt-get update && \ + apt-get install -yqq --no-install-recommends \ + cargo && \ + pip -U install sentence-transformers \ + rm -rf \ + /var/lib/apt/lists/* \ + /usr/share/doc \ + /usr/share/locale \ + /usr/share/man + +RUN mkdir -p /app + +WORKDIR /app + +CMD tail -f /dev/null