diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8177274d1e9..0192e65aabe 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,7 +36,7 @@ jobs: uses: docker/build-push-action@v6.5.0 with: push: true - platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 + platforms: linux/amd64 tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }} build-args: | VERSION=${{ steps.getversion.outputs.version }} diff --git a/Dockerfile b/Dockerfile index d2ed4d6adb8..def3d25c70c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM mcr.microsoft.com/powershell ARG VERSION=latest RUN pwsh -c "if ('${VERSION}' -eq 'latest') { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force} else { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force -RequiredVersion ${VERSION} }" +RUN pwsh -c "if (!(Test-Path -Path \$PROFILE)) { New-Item -ItemType File -Path \$PROFILE -Force } echo 'Import-Module Microsoft.Graph.Authentication' >> \$PROFILE" LABEL description="# Welcome to Microsoft Graph PowrShell \ To start learning about the module checkout the [getting started documentation](https://docs.microsoft.com/en-us/powershell/microsoftgraph/get-started)" \ No newline at end of file