Skip to content

Commit eefa0c7

Browse files
committed
fix(docker): correct project path in Dockerfile
- Updates the project file path in the Dockerfile to the correct source directory. - Ensures successful build process for the ES.Kubernetes.Reflector project.
1 parent eaa0232 commit eefa0c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ES.Kubernetes.Reflector/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ EXPOSE 8080
55

66
FROM mcr.microsoft.com/dotnet/sdk:9.0-bookworm-slim-amd64 AS build
77
ARG BUILD_CONFIGURATION=Release
8-
WORKDIR /src
9-
COPY ["ES.Kubernetes.Reflector/ES.Kubernetes.Reflector.csproj", "ES.Kubernetes.Reflector/"]
108
COPY . .
11-
WORKDIR "/src/ES.Kubernetes.Reflector"
12-
RUN dotnet build "ES.Kubernetes.Reflector.csproj" -c $BUILD_CONFIGURATION
9+
RUN dotnet build "src/ES.Kubernetes.Reflector/ES.Kubernetes.Reflector.csproj" -c $BUILD_CONFIGURATION
1310

1411
FROM build AS publish
1512
RUN dotnet publish "ES.Kubernetes.Reflector.csproj" -c $BUILD_CONFIGURATION -o /app/publish --no-build /p:UseAppHost=false

0 commit comments

Comments
 (0)