Skip to content

Commit

Permalink
Adding a python directory to try a new image.
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrama committed Apr 25, 2024
1 parent 32c8789 commit 6ef5cef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions py/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6ef5cef

Please sign in to comment.