mirror of
https://github.com/docker/awesome-compose.git
synced 2026-11-15 19:01:12 +01:00
add aspnet-mssql application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
1 parent
43f21f2d8d
commit
5417ecf9f2
72 files changed
+25226
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
# This Dockerfile uses nightly preview builds for .NET Core
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# copy csproj and restore as distinct layers
|
||||
COPY *.sln .
|
||||
COPY aspnetapp/*.csproj ./aspnetapp/
|
||||
RUN dotnet restore
|
||||
|
||||
# copy everything else and build app
|
||||
COPY aspnetapp/. ./aspnetapp/
|
||||
WORKDIR /app/aspnetapp
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/aspnetapp/out ./
|
||||
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
|
||||
Reference in new issue
Block a user