We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fbf96e0 + 79a8649 commit 023308bCopy full SHA for 023308b
1 file changed
itu-minitwit/Dockerfile
@@ -7,12 +7,9 @@ COPY . .
7
# 2. Move into the Web project folder
8
WORKDIR /source/src/MiniTwit.Web
9
10
-# 3. Restore specifically for this project and then
11
-RUN dotnet restore &&
12
-
13
-# 4. Publish
14
-# We explicitly point to the .csproj
15
-RUN dotnet publish MiniTwit.Web.csproj -c Release -o /app
+# 3. Restore and Publish in one step
+RUN dotnet restore && \
+ dotnet publish MiniTwit.Web.csproj -c Release -o /app
16
17
# Stage 2: Runtime
18
FROM mcr.microsoft.com/dotnet/aspnet:9.0
0 commit comments