Skip to content

Commit

Permalink
Build docker image with path prefix "/browser/" (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b authored Nov 22, 2023
2 parents 1684875 + 0c45060 commit 2f87362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
build-args: |
VERSION=${{ env.VERSION }}
REVISION=${{ env.REVISION }}
STAC_BROWSER_BUILD_ARGS=--pathPrefix="/browser/"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:edge
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM node:lts-alpine3.18 AS build-step
ARG DYNAMIC_CONFIG=true
ARG STAC_BROWSER_BUILD_ARGS=

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN \[ "${DYNAMIC_CONFIG}" == "true" \] && sed -i 's/<!-- <script defer="defer" src=".\/config.js"><\/script> -->/<script defer="defer" src=".\/config.js"><\/script>/g' public/index.html
RUN npm run build
RUN npm run build -- ${STAC_BROWSER_BUILD_ARGS}


FROM nginx:1-alpine-slim
Expand Down

0 comments on commit 2f87362

Please sign in to comment.