Add .env so builds can take into account PUBLIC_URL and BASE_PATH -- need to switch those to be variables?

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-20 16:19:18 -08:00
parent ccdfd2513f
commit aa5ef10e85
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@
!*.js !*.js
!*.sh !*.sh
!*.md !*.md
!.env
!config !config
config/local.json config/local.json
!client !client

View File

@ -35,12 +35,13 @@ COPY /package.json /website/
RUN npm install RUN npm install
COPY /.babelrc /*.html /*.js /website/ COPY /.babelrc /*.html /*.js /website/
COPY /src /website/src COPY /src /website/src
COPY /.env /website/
RUN npm run build RUN npm run build
# Polymer frontend app built using bower # Polymer frontend app built using bower
WORKDIR /website/frontend WORKDIR /website/frontend
COPY /frontend /website/frontend COPY /frontend /website/frontend
RUN npx bower install RUN npx -y bower -y install
# 'identities' frontend built using react # 'identities' frontend built using react
WORKDIR /website/client WORKDIR /website/client
@ -50,6 +51,7 @@ COPY /client/tsconfig.json /website/client/
COPY /client/*.js /website/client/ COPY /client/*.js /website/client/
COPY /client/public /website/client/public COPY /client/public /website/client/public
COPY /client/src /website/client/src COPY /client/src /website/client/src
COPY /client/.env /website/client/
RUN npm run build RUN npm run build
# #
@ -87,6 +89,7 @@ WORKDIR /website/server
COPY /server/package.json /website/server/ COPY /server/package.json /website/server/
RUN npm install RUN npm install
COPY /.env /website/
COPY /config /website/config COPY /config /website/config
COPY /server/*.js /website/server/ COPY /server/*.js /website/server/
COPY /server/db /website/server/db COPY /server/db /website/server/db