Skip to content

Commit

Permalink
Try release and docekrfile without tsc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Feb 26, 2021
1 parent 168174c commit df1c743
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /source

ENV NODE_VERSION=12.6.0
RUN apt install -y curl
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN node --version
RUN npm --version
RUN npm install -g typescript
COPY . .
RUN dotnet restore

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


FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
WORKDIR /app
COPY --from=build /app ./
Expand Down
4 changes: 0 additions & 4 deletions RazorTemplate/RazorTemplate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>

<Target Name="Bundle" BeforeTargets="BeforePublish">
<Exec Command="tsc wwwroot/assets/js/dtos.ts" />
</Target>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
Expand Down

0 comments on commit df1c743

Please sign in to comment.