Updating the dockerfile to use yarn

This commit is contained in:
Zoe Roux 2021-10-31 14:57:16 +01:00
parent 817a254c84
commit 68fbb7ae54
3 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
.git .git
**/build **/build
**/dist **/dist
**/nodes_modules src/Kyoo.WebApp/Front/nodes_modules
**/bin **/bin
**/obj **/obj
docs docs

View File

@ -4,11 +4,12 @@ WORKDIR /transcoder
COPY src/Kyoo.Transcoder . COPY src/Kyoo.Transcoder .
RUN cmake . && make -j RUN cmake . && make -j
FROM node:alpine as webapp FROM node:16-alpine as webapp
WORKDIR /webapp WORKDIR /webapp
COPY src/Kyoo.WebApp/Front . COPY src/Kyoo.WebApp/Front .
RUN npm install RUN npm install -g @angular/cli #???
RUN npm run build -- --configuration production RUN yarn install --frozen-lockfile
RUN yarn run build --configuration production
FROM mcr.microsoft.com/dotnet/sdk:5.0 as builder FROM mcr.microsoft.com/dotnet/sdk:5.0 as builder
COPY . . COPY . .

@ -1 +1 @@
Subproject commit f9741049100f90d09be88826b02c079b00b8b91b Subproject commit 326c9aa9d35a265fbada2f6b268a2740a5beab8e