From 61dedd9cf9c4001ce5f7c437f45a1d4313d3e688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 23 Aug 2022 15:29:00 +0100 Subject: [PATCH] fix: improve build result --- build/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index 814c4985..a1954bea 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -26,9 +26,10 @@ WORKDIR /lamassu RUN git clone https://github.com/lamassu/lamassu-server -b ${SERVER_VERSION} RUN rm -rf /lamassu/lamassu-server/public/* RUN cd lamassu-server && npm install --production -RUN ls -la + RUN cd lamassu-server/new-lamassu-admin && npm install && npm run build RUN cp -r /lamassu/lamassu-server/new-lamassu-admin/build/* /lamassu/lamassu-server/public +RUN rm -rf /lamassu/lamassu-server/new-lamassu-admin/node_modules RUN tar -zcvf lamassu-server-$SERVER_VERSION.tar.gz lamassu-server/