fix: Copy whole working dir in Dockerfile before building assets

This commit is contained in:
Robert Prehn 2021-01-08 14:02:09 -06:00
parent 24892db8fd
commit f1b089eb8a

View file

@ -35,9 +35,7 @@ RUN MAKE=cmake mix compile
FROM node:15.0 FROM node:15.0
WORKDIR /root/app/apps/app/assets/ WORKDIR /root/app/apps/app/assets/
COPY --from=0 /root/app/apps/app/assets/ /root/app/apps/app/assets COPY --from=0 /root/app/ /root/app/
COPY --from=0 /root/app/deps/phoenix/ /root/app/apps/app/assets/node_modules/phoenix
COPY --from=0 /root/app/deps/phoenix_html/ /root/app/apps/app/assets/node_modules/phoenix_html
RUN npm install RUN npm install
RUN npm run deploy RUN npm run deploy