-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
1 parent
8f226fc
commit 49769ef
Showing
7 changed files
with
36 additions
and
21 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
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
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
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
WORKDIR /work | ||
|
||
COPY ./Directory.Build.props ./ | ||
COPY ./Directory.Packages.props ./ | ||
COPY src/*/*.csproj ./ | ||
RUN for projectFile in $(ls *.csproj); \ | ||
do \ | ||
mkdir -p ${projectFile%.*}/ && mv $projectFile ${projectFile%.*}/; \ | ||
done | ||
do \ | ||
mkdir -p ${projectFile%.*}/ && mv $projectFile ${projectFile%.*}/; \ | ||
done | ||
|
||
ENV DOTNET_NOLOGO=true | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true | ||
|
@@ -15,6 +16,8 @@ RUN dotnet restore /work/HappyCode.NetCoreBoilerplate.Api/HappyCode.NetCoreBoile | |
|
||
COPY src . | ||
|
||
# -------------- | ||
|
||
FROM build AS publish | ||
WORKDIR /work/HappyCode.NetCoreBoilerplate.Api | ||
|
||
|
@@ -23,9 +26,9 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=true | |
|
||
RUN dotnet publish -c Release -o /app --no-restore | ||
|
||
LABEL maintainer="Lukasz Kurzyniec ([email protected])" | ||
# -------------- | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS final | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
|
||
|