Move build order around
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
aa5ef10e85
commit
d9a3f4dd8a
11
Dockerfile
11
Dockerfile
@ -29,7 +29,13 @@ FROM base AS production
|
|||||||
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
|
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
|
||||||
git
|
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...
|
# Not sure if the root is actually used for anything...
|
||||||
|
# It does have dependencies on frontend
|
||||||
WORKDIR /website
|
WORKDIR /website
|
||||||
COPY /package.json /website/
|
COPY /package.json /website/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
@ -38,11 +44,6 @@ COPY /src /website/src
|
|||||||
COPY /.env /website/
|
COPY /.env /website/
|
||||||
RUN npm run build
|
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
|
# 'identities' frontend built using react
|
||||||
WORKDIR /website/client
|
WORKDIR /website/client
|
||||||
COPY /client/package.json /website/client/
|
COPY /client/package.json /website/client/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user