13 lines
346 B
Docker
13 lines
346 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:8.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:8.0 AS base
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["dotnet", "WeatherDashboard.Web.dll"] |