Use prod build for public things
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
cami 2021-07-12 22:38:20 +02:00
parent e98ae905ce
commit 5d15fbcd3d
2 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

@ -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