From d9a3f4dd8aa06cb8e3667010a73782a290f8bdb1 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Fri, 20 Jan 2023 16:21:39 -0800 Subject: [PATCH] Move build order around Signed-off-by: James Ketrenos --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6abf135..56a6d97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/