From ecfee1d60a574784235834b160b602de8cff6d27 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Mon, 30 Sep 2024 10:52:51 +1300 Subject: [PATCH] fix(server): Copy the static health check files into server container (#3351) ### Motivation Server container failed v1/health endpoint check because missing the static files from lambda-tiler. ### Modifications Copy the file into the server container ### Verification #### Failure without static files ![image](https://github.com/user-attachments/assets/caad587c-84a7-4f3c-ad6b-5ba4303e4691) #### Success with static files ![image](https://github.com/user-attachments/assets/03620ad1-dabf-48b7-b18d-690881b3a96b) --- .github/workflows/containers.yml | 1 + packages/server/Dockerfile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 18b5b54ff..baee7a851 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -50,6 +50,7 @@ jobs: # Files are packed into the base directory cp *.tgz packages/server/ cp *.tgz packages/cli/ + cp -r packages/lambda-tiler/static/ packages/server/ cp -r packages/lambda-tiler/static/ packages/cli/ - name: Log in to registry diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile index 97bf4cb9c..898dec5e4 100644 --- a/packages/server/Dockerfile +++ b/packages/server/Dockerfile @@ -12,6 +12,9 @@ WORKDIR /app/basemaps COPY ./basemaps-landing*.tgz /app/basemaps/ COPY ./basemaps-server*.tgz /app/basemaps/ +# Copy the static files for v1/health check +COPY ./static/ /app/basemaps/static/ + RUN npm install ./basemaps-landing*.tgz RUN npm install ./basemaps-server*.tgz