-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
WORKDIR /source | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \ | ||
&& apt-get install -y --no-install-recommends nodejs \ | ||
&& echo "node version: $(node --version)" \ | ||
&& echo "npm version: $(npm --version)" \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY VuetifyNuxtTemplate/package.json . | ||
COPY VuetifyNuxtTemplate/npm-shrinkwrap.json . | ||
|
||
RUN npm --prefix VuetifyNuxtTemplate install | ||
|
||
COPY . . | ||
RUN dotnet restore | ||
|
||
WORKDIR /source/VuetifyNuxtTemplate | ||
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 ./ | ||
ENTRYPOINT ["dotnet", "VuetifyNuxtTemplate.dll"] |