File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
22WORKDIR /source
33
4- ENV NODE_VERSION=12.6.0
5- RUN apt install -y curl
6- RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
7- ENV NVM_DIR=/root/.nvm
8- RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
9- RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
10- RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
11- ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
12- RUN node --version
13- RUN npm --version
14- RUN npm install -g typescript
154COPY . .
165RUN dotnet restore
176
187WORKDIR /source/RazorTemplate
198RUN dotnet publish -c release -o /app --no-restore
209
21-
2210FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
2311WORKDIR /app
2412COPY --from=build /app ./
Original file line number Diff line number Diff line change 66 <RazorCompileOnPublish >false</RazorCompileOnPublish >
77 </PropertyGroup >
88
9- <Target Name =" Bundle" BeforeTargets =" BeforePublish" >
10- <Exec Command =" tsc wwwroot/assets/js/dtos.ts" />
11- </Target >
12-
139 <ItemGroup >
1410 <Folder Include =" wwwroot\" />
1511 </ItemGroup >
You can’t perform that action at this time.
0 commit comments