From 5d15fbcd3d02be449e9ed96f3b526ab37f8168d1 Mon Sep 17 00:00:00 2001 From: cami Date: Mon, 12 Jul 2021 22:38:20 +0200 Subject: [PATCH] Use prod build for public things --- .drone.yml | 4 ++-- frontend/Dockerfile.prod | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f66ae32..5707cc1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,7 @@ steps: settings: repo: caminsha/bt-backend context: ./backend - dockerfile: ./backend/Dockerfile + dockerfile: ./backend/Dockerfile.prod username: from_secret: DOCKER_USERNAME password: @@ -27,7 +27,7 @@ steps: settings: repo: caminsha/bt-frontend context: ./frontend - dockerfile: ./frontend/Dockerfile + dockerfile: ./frontend/Dockerfile.prod username: from_secret: DOCKER_USERNAME password: diff --git a/frontend/Dockerfile.prod b/frontend/Dockerfile.prod index 4e29d15..1313b59 100644 --- a/frontend/Dockerfile.prod +++ b/frontend/Dockerfile.prod @@ -6,6 +6,7 @@ COPY package.json ./ COPY package-lock.json ./ RUN npm ci --silent RUN npm install react-scripts -g --silent +RUN npm audit fix COPY . ./ RUN npm run build