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:
parent
ccdfd2513f
commit
aa5ef10e85
@ -5,6 +5,7 @@
|
||||
!*.js
|
||||
!*.sh
|
||||
!*.md
|
||||
!.env
|
||||
!config
|
||||
config/local.json
|
||||
!client
|
||||
|
@ -35,12 +35,13 @@ COPY /package.json /website/
|
||||
RUN npm install
|
||||
COPY /.babelrc /*.html /*.js /website/
|
||||
COPY /src /website/src
|
||||
COPY /.env /website/
|
||||
RUN npm run build
|
||||
|
||||
# Polymer frontend app built using bower
|
||||
WORKDIR /website/frontend
|
||||
COPY /frontend /website/frontend
|
||||
RUN npx bower install
|
||||
RUN npx -y bower -y install
|
||||
|
||||
# 'identities' frontend built using react
|
||||
WORKDIR /website/client
|
||||
@ -50,6 +51,7 @@ COPY /client/tsconfig.json /website/client/
|
||||
COPY /client/*.js /website/client/
|
||||
COPY /client/public /website/client/public
|
||||
COPY /client/src /website/client/src
|
||||
COPY /client/.env /website/client/
|
||||
RUN npm run build
|
||||
|
||||
#
|
||||
@ -87,6 +89,7 @@ WORKDIR /website/server
|
||||
COPY /server/package.json /website/server/
|
||||
RUN npm install
|
||||
|
||||
COPY /.env /website/
|
||||
COPY /config /website/config
|
||||
COPY /server/*.js /website/server/
|
||||
COPY /server/db /website/server/db
|
||||
|
Loading…
x
Reference in New Issue
Block a user