Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
59 additions
and 3 deletions.
- +20 −0 .dockerignore
- +20 −0 Dockerfile
- +15 −3 Properties/launchSettings.json
- +4 −0 docker-aspnetcore-react.csproj
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
@@ -0,0 +1,20 @@ | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/azds.yaml | ||
**/charts | ||
**/bin | ||
**/obj | ||
**/Dockerfile | ||
**/Dockerfile.develop | ||
**/docker-compose.yml | ||
**/docker-compose.*.yml | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
**/.toolstarget |
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
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build | ||
WORKDIR /src | ||
COPY ["docker-aspnetcore-react.csproj", ""] | ||
RUN dotnet restore "docker-aspnetcore-react.csproj" | ||
COPY . . | ||
WORKDIR "/src/" | ||
RUN dotnet build "docker-aspnetcore-react.csproj" -c Release -o /app | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "docker-aspnetcore-react.csproj" -c Release -o /app | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
ENTRYPOINT ["dotnet", "docker-aspnetcore-react.dll"] |
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