From eec76ec94f0fdbbc19a7f71916fac414a99617c5 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Mon, 6 Feb 2023 13:52:15 -0500 Subject: [PATCH] fix build issues in production mode --- account/Dockerfile | 3 +-- admin/Dockerfile | 3 +-- backend/package.json | 2 +- frontend/Dockerfile | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/account/Dockerfile b/account/Dockerfile index 03c1f20..092cbd3 100644 --- a/account/Dockerfile +++ b/account/Dockerfile @@ -10,8 +10,7 @@ ARG REACT_APP_SITE_NAME ARG REACT_APP_ADMIN_EMAIL ARG NODE_ENV COPY package.json ./ -RUN npm install -RUN npm install react-scripts@3.4.1 -g --silent +RUN npm install --also=dev COPY . ./ RUN npm run build RUN env diff --git a/admin/Dockerfile b/admin/Dockerfile index 19157ef..742b3fd 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -10,8 +10,7 @@ ARG REACT_APP_SITE_NAME ARG REACT_APP_ADMIN_EMAIL ARG NODE_ENV COPY package.json ./ -RUN npm install -RUN npm install react-scripts@3.4.1 -g --silent +RUN npm install --also=dev COPY . ./ RUN npm run build diff --git a/backend/package.json b/backend/package.json index c1a0b6f..fb6e64f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -22,7 +22,7 @@ "mongodb": "2.2.36", "mongoose": "5.12.3", "multer": "1.3.0", - "node-ffprobe": "github:ListenerApproved/node-ffprobe", + "node-ffprobe": "https://github.com/ListenerApproved/node-ffprobe", "node-schedule": "1.2.4", "passport": "0.4.0", "passport-local": "1.0.0", diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 520fb40..28a5624 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -8,8 +8,7 @@ ARG REACT_APP_FRONTEND_SERVER ARG REACT_APP_GOOGLE_ANALYTICS ARG NODE_ENV COPY package.json ./ -RUN npm install -RUN npm install react-scripts@3.4.1 -g --silent +RUN npm install --also=dev COPY . ./ RUN npm run build