From 45244d122e507bd60f747b9ad1e6b2741d76e472 Mon Sep 17 00:00:00 2001 From: gornication <49779801+gornication@users.noreply.github.com> Date: Fri, 29 Sep 2023 12:43:16 +0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c829f10a..3f9ef389 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,8 +51,12 @@ COPY --chown=node:node --from=development /usr/src/app/client/node_modules ./cli RUN apk add --no-cache --virtual .gyp python3 py3-pip make g++ +# Install project dependencies before running build commands +RUN npm ci + RUN npm run build -RUN npm run build --prefix=client +# Build the client (React) project +RUN cd client && npm ci && npm run build ENV NODE_ENV production