You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
+
3
+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
4
+
USER app
5
+
WORKDIR /app
6
+
COPY ./https ./https
7
+
8
+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
9
+
ARG BUILD_CONFIGURATION=Release
10
+
COPY ["devblog.csproj", "app/"]
11
+
RUN dotnet restore "./app/devblog.csproj"
12
+
COPY . app/
13
+
WORKDIR"/app"
14
+
RUN dotnet build "./devblog.csproj" -c $BUILD_CONFIGURATION -o /app/build
15
+
16
+
FROM build AS publish
17
+
ARG BUILD_CONFIGURATION=Release
18
+
RUN dotnet publish "./devblog.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
0 commit comments