mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-29 15:48:03 +02:00
Added backend
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
c4c4136352
commit
718df2a62d
8 changed files with 473 additions and 22 deletions
17
react-aspnet-mongodb/backend/Dockerfile
Executable file
17
react-aspnet-mongodb/backend/Dockerfile
Executable file
|
@ -0,0 +1,17 @@
|
|||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as base
|
||||
WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.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