Skip to content

Commit 2162c79

Browse files
committed
updated docker file snippet
1 parent bcc5673 commit 2162c79

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Web.Api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# 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.
22

33
# This stage is used when running from VS in fast mode (Default for Debug configuration)
4-
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
4+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
55
USER $APP_UID
66
WORKDIR /app
77
EXPOSE 8080
88
EXPOSE 8081
99

1010

1111
# This stage is used to build the service project
12-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
12+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1313
ARG BUILD_CONFIGURATION=Release
1414
WORKDIR /src
1515
COPY ["Directory.Packages.props", "."]

src/Web.Api/Endpoints/UserImages/UploadImageData.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public void MapEndpoint(IEndpointRouteBuilder app)
5353
ImageUrl = cloudinaryUrl
5454
}),
5555
CustomResults.Problem);
56-
// return result.Match(Results.Ok, CustomResults.Problem);
5756
})
5857
.DisableAntiforgery()
5958
.Accepts<UploadImageRequest>("multipart/form-data")

0 commit comments

Comments
 (0)