Move build order around

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-20 16:21:39 -08:00
parent aa5ef10e85
commit d9a3f4dd8a

View File

@ -29,7 +29,13 @@ FROM base AS production
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
git
# Polymer frontend app built using bower
WORKDIR /website/frontend
COPY /frontend /website/frontend
RUN npx -y bower -y install
# Not sure if the root is actually used for anything...
# It does have dependencies on frontend
WORKDIR /website
COPY /package.json /website/
RUN npm install
@ -38,11 +44,6 @@ 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 -y bower -y install
# 'identities' frontend built using react
WORKDIR /website/client
COPY /client/package.json /website/client/