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/