🔧(docker) frontend env build

Make the environment variables configurable
for the frontend app in the Dockerfile by setting
the arg variables.
This commit is contained in:
Anthony LC
2024-08-15 12:48:22 +02:00
committed by Anthony LC
parent 6fdf912d5d
commit 2391098aba
2 changed files with 11 additions and 0 deletions

View File

@@ -61,6 +61,15 @@ FROM impress as impress-builder
WORKDIR /home/frontend/apps/impress
ARG FRONTEND_THEME
ENV NEXT_PUBLIC_THEME=${FRONTEND_THEME}
ARG SIGNALING_URL
ENV NEXT_PUBLIC_SIGNALING_URL=${SIGNALING_URL}
ARG API_ORIGIN
ENV NEXT_PUBLIC_API_ORIGIN=${API_ORIGIN}
RUN yarn build
# ---- Front-end image ----

View File

@@ -1 +1,3 @@
NEXT_PUBLIC_THEME=dsfr
NEXT_PUBLIC_SIGNALING_URL=
NEXT_PUBLIC_API_ORIGIN=