From c7b8c40eaf8f83e3428a620806b0e86a89e89228 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:17:25 -0500 Subject: [PATCH 01/19] Create docker-build-push.yml --- .github/workflows/docker-build-push.yml | 265 ++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 .github/workflows/docker-build-push.yml diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml new file mode 100644 index 0000000..e958755 --- /dev/null +++ b/.github/workflows/docker-build-push.yml @@ -0,0 +1,265 @@ +name: Docker + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +on: + push: + branches: [ "main", DEV-93 ] + # Publish semver tags as releases. + tags: [ 'v*.*.*' ] + +env: + # Use docker.io for Docker Hub if empty + REGISTRY: ghcr.io + # github.repository as / + + LITMAPPER_BACKEND_IMAGE_NAME: USEPA/litmapper-backend + LITMAPPER_ETL_IMAGE_NAME: USEPA/litmapper-etl + LITMAPPER_FRONTEND_IMAGE_NAME: USEPA/litmapper-frontend + LITMAPPER_SPECTER_IMAGE_NAME: USEPA/litmapper-specter + + +jobs: + backend-build-push: + + runs-on: ubuntu-latest + environment: ${{ github.head_ref || github.ref_name }} + permissions: + contents: write + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Workaround: https://github.com/docker/build-push-action/issues/461 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: USEPA + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.LITMAPPER_BACKEND_IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v4 + with: + context: ./backend/ + file: ./backend/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + + # Removing old packages and only keeping 3 untagged versions + - name: Delete Package Versions + uses: actions/delete-package-versions@v5 + with: + package-name: litmapper-backend + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true' + + etl-build-push: + + runs-on: ubuntu-latest + environment: ${{ github.head_ref || github.ref_name }} + permissions: + contents: write + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Workaround: https://github.com/docker/build-push-action/issues/461 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: USEPA + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env. LITMAPPER_ETL_IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v4 + with: + context: ./etl/ + file: ./etl/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + + # Removing old packages and only keeping 3 untagged versions + - name: Delete Package Versions + uses: actions/delete-package-versions@v5 + with: + package-name: litmapper-etl + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true' + + frontend-build-push: + runs-on: ubuntu-latest + environment: ${{ github.head_ref || github.ref_name }} + permissions: + contents: write + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Create .env file for build + - name: Creating .env file + run: echo "$ENV_TEXT" > ./front_end/.env + env: + ENV_TEXT: ${{vars.ENV_TEXT}} + + # Workaround: https://github.com/docker/build-push-action/issues/461 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: USEPA + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.LITMAPPER_FRONTEND_IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v5 + with: + context: ./frontend/ + file: ./frontend/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + + # Removing old packages and only keeping 3 untagged versions + - name: Delete Package Versions + uses: actions/delete-package-versions@v5 + with: + package-name: litmapper-frontend + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true' + + specter-build-push: + runs-on: ubuntu-latest + environment: ${{ github.head_ref || github.ref_name }} + permissions: + contents: write + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Workaround: https://github.com/docker/build-push-action/issues/461 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: USEPA + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.LITMAPPER_SPECTER_IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v5 + with: + context: ./specter/ + file: ./specter/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + + # Removing old packages and only keeping 3 untagged versions + - name: Delete Package Versions + uses: actions/delete-package-versions@v5 + with: + package-name: litmapper-specter + package-type: 'container' + min-versions-to-keep: 3 + delete-only-untagged-versions: 'true' + From 5b641b6b55edcb68c0ad7fd8bca86700a6792bc4 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:20:28 -0500 Subject: [PATCH 02/19] Update docker-build-push.yml --- .github/workflows/docker-build-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index e958755..0a5a6e6 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -7,7 +7,7 @@ name: Docker on: push: - branches: [ "main", DEV-93 ] + branches: [ "main", DEV-932 ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] From ab4474634eb72d582f843b54793c5e7904720210 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:22:01 -0500 Subject: [PATCH 03/19] Update docker-build-push.yml --- .github/workflows/docker-build-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 0a5a6e6..8bd95d5 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -157,7 +157,7 @@ jobs: # Create .env file for build - name: Creating .env file - run: echo "$ENV_TEXT" > ./front_end/.env + run: echo "$ENV_TEXT" > ./frontend/.env env: ENV_TEXT: ${{vars.ENV_TEXT}} From 8e56d6b81c9449e77709b3b00edb983a0eb7b179 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:03:42 -0500 Subject: [PATCH 04/19] Update docker-build-push.yml --- .github/workflows/docker-build-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 8bd95d5..0eba8ed 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -84,7 +84,7 @@ jobs: etl-build-push: - runs-on: ubuntu-latest + runs-on: th874 environment: ${{ github.head_ref || github.ref_name }} permissions: contents: write From 60181c81a49a2594421e5dad81c9e3964d858f61 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:58:14 -0500 Subject: [PATCH 05/19] Update Dockerfile --- specter/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/specter/Dockerfile b/specter/Dockerfile index 81f46b8..c6c8758 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -4,3 +4,4 @@ WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt +CMD ["python", "populate.py"] From 2b77060556a5b55d409cd5f6d69b6b6d2745d89d Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:16:54 -0500 Subject: [PATCH 06/19] Update Dockerfile --- specter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index c6c8758..2e0aa65 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt -CMD ["python", "populate.py"] + From 074af8f8250d1780c8b4bae4649208ff8adb87bf Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:34:00 -0500 Subject: [PATCH 07/19] Update Dockerfile --- specter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 2e0aa65..955dfd0 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt - +CMD ["../usr/bin/python3", "./populate.py"] From 44056d7a94d0f6e946ef7bfe559d608fca93fc3e Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:08:17 -0500 Subject: [PATCH 08/19] Update Dockerfile --- specter/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 955dfd0..3dac0a0 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.9 WORKDIR /code - +COPY . /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt -CMD ["../usr/bin/python3", "./populate.py"] +CMD ["python", "./populate.py"] From 35078076b53a80e8ed6e2f29744ad2fd974a9e54 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:12:00 -0500 Subject: [PATCH 09/19] Update Dockerfile --- specter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 3dac0a0..703f2d4 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /code COPY . /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt -CMD ["python", "./populate.py"] +CMD ["python", "populate.py"] From 3fb3a579ca65a71cd7cc90985fea5e2e007650c9 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:20:54 -0500 Subject: [PATCH 10/19] Update Dockerfile --- specter/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 703f2d4..a4dc292 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -4,4 +4,7 @@ WORKDIR /code COPY . /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r /code/requirements.txt -CMD ["python", "populate.py"] +RUN chmod +x populate.py +CMD ["../usr/bin/python3", "./populate.py"] + + From eb15c45931a3fb879a7ad6c740b6c79e28f8cbcd Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:28:42 -0500 Subject: [PATCH 11/19] Update Dockerfile --- specter/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/specter/Dockerfile b/specter/Dockerfile index a4dc292..634902d 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -3,6 +3,7 @@ FROM python:3.9 WORKDIR /code COPY . /code COPY ./requirements.txt /code/requirements.txt +RUN ls -la RUN pip install -r /code/requirements.txt RUN chmod +x populate.py CMD ["../usr/bin/python3", "./populate.py"] From 27bb8d30c34b6dc5f944da72a5854f979b03bc6d Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:36:28 -0500 Subject: [PATCH 12/19] Update Dockerfile --- specter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 634902d..4150d12 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -6,6 +6,6 @@ COPY ./requirements.txt /code/requirements.txt RUN ls -la RUN pip install -r /code/requirements.txt RUN chmod +x populate.py -CMD ["../usr/bin/python3", "./populate.py"] +CMD ["../usr/bin/python3", "/code/populate.py"] From ee2f6c42fc11c065bbd55f82f0e2cc165917e634 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:42:24 -0500 Subject: [PATCH 13/19] Update Dockerfile --- specter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 4150d12..e73807b 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -6,6 +6,6 @@ COPY ./requirements.txt /code/requirements.txt RUN ls -la RUN pip install -r /code/requirements.txt RUN chmod +x populate.py -CMD ["../usr/bin/python3", "/code/populate.py"] +CMD ["/usr/bin/python3", "/code/populate.py"] From 5c06bb5ab48d0f6d1447c61582b4fb1659cd30b2 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:46:03 -0500 Subject: [PATCH 14/19] Update Dockerfile --- specter/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index e73807b..9b8acce 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -6,6 +6,7 @@ COPY ./requirements.txt /code/requirements.txt RUN ls -la RUN pip install -r /code/requirements.txt RUN chmod +x populate.py -CMD ["/usr/bin/python3", "/code/populate.py"] +ENTRYPOINT ["/usr/bin/python3", "/code/populate.py"] +#CMD ["/usr/bin/python3", "/code/populate.py"] From 089771a874857793409637315dd57b78d67a5b8c Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:56:30 -0500 Subject: [PATCH 15/19] Update Dockerfile --- specter/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/specter/Dockerfile b/specter/Dockerfile index 9b8acce..7106655 100644 --- a/specter/Dockerfile +++ b/specter/Dockerfile @@ -1,12 +1,8 @@ FROM python:3.9 WORKDIR /code -COPY . /code + COPY ./requirements.txt /code/requirements.txt -RUN ls -la RUN pip install -r /code/requirements.txt -RUN chmod +x populate.py -ENTRYPOINT ["/usr/bin/python3", "/code/populate.py"] -#CMD ["/usr/bin/python3", "/code/populate.py"] From d30ac103392a91da897cd72f14b9a3b6b7277b97 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:01:32 -0500 Subject: [PATCH 16/19] Update Dockerfile --- frontend/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 05e6a60..0797fe8 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,6 +1,7 @@ FROM node:20.13.1-slim WORKDIR /code +COPY . /code COPY ./package.json ./package-lock.json ./ RUN npm install From 611cedbdbb616715d2710e488d66b8b6fe10306a Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:22:39 -0500 Subject: [PATCH 17/19] Update Dockerfile --- etl/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etl/Dockerfile b/etl/Dockerfile index 6c438ea..96f7b1e 100644 --- a/etl/Dockerfile +++ b/etl/Dockerfile @@ -16,3 +16,6 @@ RUN pip install --no-cache numpy==1.26.4 \ RUN python -c 'import tensorflow_hub as hub; hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")' WORKDIR /code + +# Run the command to start your app +CMD ["python", "run.py"] From 5ad89e8f81a92c75bbc62594a4dc448eea763027 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:25:23 -0500 Subject: [PATCH 18/19] Update Dockerfile --- etl/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etl/Dockerfile b/etl/Dockerfile index 96f7b1e..e0ed066 100644 --- a/etl/Dockerfile +++ b/etl/Dockerfile @@ -6,8 +6,10 @@ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machi RUN apt-get update && apt-get install -y \ git libhdf5-dev \ && rm -rf /var/lib/apt/lists/* - -COPY ./requirements.txt /code/requirements.txt + +WORKDIR /code +COPY . /code +#COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache numpy==1.26.4 \ && pip install --no-cache Cython==0.29.37 \ && pip install --no-cache pandas==1.1.5 --no-build-isolation \ @@ -15,7 +17,5 @@ RUN pip install --no-cache numpy==1.26.4 \ RUN python -c 'import tensorflow_hub as hub; hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")' -WORKDIR /code - # Run the command to start your app CMD ["python", "run.py"] From d9ad23a8b2ebc9ea58b6d21720a7a5480d795f31 Mon Sep 17 00:00:00 2001 From: Odile Kemghou <128539129+okemghou@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:22:32 -0500 Subject: [PATCH 19/19] Update Dockerfile --- etl/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/etl/Dockerfile b/etl/Dockerfile index e0ed066..22913de 100644 --- a/etl/Dockerfile +++ b/etl/Dockerfile @@ -7,9 +7,7 @@ RUN apt-get update && apt-get install -y \ git libhdf5-dev \ && rm -rf /var/lib/apt/lists/* -WORKDIR /code -COPY . /code -#COPY ./requirements.txt /code/requirements.txt +COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache numpy==1.26.4 \ && pip install --no-cache Cython==0.29.37 \ && pip install --no-cache pandas==1.1.5 --no-build-isolation \ @@ -17,5 +15,4 @@ RUN pip install --no-cache numpy==1.26.4 \ RUN python -c 'import tensorflow_hub as hub; hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")' -# Run the command to start your app -CMD ["python", "run.py"] +WORKDIR /code