Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Sep 21, 2023
1 parent c97c2bf commit 40d99ec
Showing 1 changed file with 2 additions and 1 deletion.
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 catalogURL

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 build -- --catalogUrl=$catalogURL


FROM nginx:1-alpine-slim
Expand Down

0 comments on commit 40d99ec

Please sign in to comment.