🔧(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:
@@ -61,6 +61,15 @@ FROM impress as impress-builder
|
|||||||
|
|
||||||
WORKDIR /home/frontend/apps/impress
|
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
|
RUN yarn build
|
||||||
|
|
||||||
# ---- Front-end image ----
|
# ---- Front-end image ----
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
NEXT_PUBLIC_THEME=dsfr
|
NEXT_PUBLIC_THEME=dsfr
|
||||||
|
NEXT_PUBLIC_SIGNALING_URL=
|
||||||
|
NEXT_PUBLIC_API_ORIGIN=
|
||||||
|
|||||||
Reference in New Issue
Block a user