mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-25 18:28:07 +02:00
Add nginx-aspnet-mysql implementation (#119)
* Added nginx-aspnet-mysql implementation Signed-off-by: GitHub <noreply@github.com> * Updated nginx+aspnet+mysql README.md Signed-off-by: GitHub <noreply@github.com> * Added db healthcheck Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
a90d4902e0
commit
eece4feb98
8 changed files with 229 additions and 0 deletions
17
nginx-aspnet-mysql/backend/Dockerfile
Executable file
17
nginx-aspnet-mysql/backend/Dockerfile
Executable file
|
@ -0,0 +1,17 @@
|
|||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 as base
|
||||
WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
RUN ls
|
||||
RUN dotnet build "aspnetapp.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "aspnetapp.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue