diff --git a/samples/demo/Dockerfile b/samples/demo/Dockerfile index fbbcb48e..9a0a7984 100644 --- a/samples/demo/Dockerfile +++ b/samples/demo/Dockerfile @@ -14,7 +14,6 @@ WORKDIR /usr/src/app COPY --from=BUILD /usr/src/app/dist ./dist COPY --from=BUILD /usr/src/app/node_modules ./node_modules -COPY --from=BUILD /usr/src/app/client/build/. ./dist/www/ EXPOSE 3000 ENV PORT=3000 diff --git a/samples/demo/build-client.js b/samples/demo/build-client.js index af62af80..edb06657 100644 --- a/samples/demo/build-client.js +++ b/samples/demo/build-client.js @@ -1,2 +1,3 @@ const opts = { stdio: 'inherit', cwd: 'client', shell: true }; -require('child_process').execSync('npm run build', opts); \ No newline at end of file +require('child_process').execSync('npm run build', opts); +require('fs').cpSync('client/build', 'dist/www', { recursive: true }); \ No newline at end of file