Skip to content

Commit e1936fc

Browse files
authored
add yarn to docker (#133)
1 parent ecf9ce2 commit e1936fc

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/Api/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine as builder
44
WORKDIR /build
55
COPY ../../. .
6+
RUN apk add --no-cache nodejs npm
7+
RUN npm install -g yarn
8+
RUN yarn --version
69
RUN dotnet publish -c Release -o /build/publish src/Api/Api.csproj
710

811
#########################################################################

src/Web/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine as builder
44
WORKDIR /build
55
COPY ../../. .
6+
RUN apk add --no-cache nodejs npm
7+
RUN npm install -g yarn
8+
RUN yarn --version
69
RUN dotnet publish -c Release -o /build/publish src/Web/Web.csproj
710

811
#########################################################################

0 commit comments

Comments
 (0)