Skip to content

Commit df1c743

Browse files
committed
Try release and docekrfile without tsc.
1 parent 168174c commit df1c743

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Dockerfile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
22
WORKDIR /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
154
COPY . .
165
RUN dotnet restore
176

187
WORKDIR /source/RazorTemplate
198
RUN dotnet publish -c release -o /app --no-restore
209

21-
2210
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
2311
WORKDIR /app
2412
COPY --from=build /app ./

RazorTemplate/RazorTemplate.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
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>

0 commit comments

Comments
 (0)