diff --git a/SystemAdmin/Dockerfile b/SystemAdmin/Dockerfile index 0656924..bf9b397 100644 --- a/SystemAdmin/Dockerfile +++ b/SystemAdmin/Dockerfile @@ -8,11 +8,14 @@ EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release + WORKDIR /src -COPY ["SystemAdmin.csproj", "."] -RUN dotnet restore "./SystemAdmin.csproj" +COPY ["SystemAdmin/SystemAdmin.csproj", "SystemAdmin/"] + +RUN dotnet restore "./SystemAdmin/./SystemAdmin.csproj" + COPY . . -WORKDIR "/src/." +WORKDIR "/src/SystemAdmin" RUN dotnet build "./SystemAdmin.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9acd07b..a3d7482 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ pool: vmImage: 'ubuntu-latest' variables: - AZURE_CONTAINER_APP_NAME: 'gateway-global-integration-ui-iac' + AZURE_CONTAINER_APP_NAME: 'gateway-global-int-ui-iac' RESOURCE_GROUP: 'Gateway-Resources-IAC' DOCKER_IMAGE: 'attonbomb/systemadmin' # Replace with your Docker Hub image path AZURE_SUBSCRIPTION: 'Gateway-Resources-IAC-MI-Conn-2'