add dockerfile
This commit is contained in:
parent
f49d7e1a25
commit
59cd70856c
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
||||
RUN dotnet publish "WeatherDashboard.Web/WeatherDashboard.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["dotnet", "WeatherDashboard.Web.dll"]
|
Loading…
x
Reference in New Issue
Block a user