From ff0c8061b50bddf58d8d6e6fa9fd47050d69424f Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Thu, 16 Mar 2023 10:22:25 -0400 Subject: [PATCH] Fixed issue with the SkipCache parameter --- Dockerfile | 2 +- docker-publish.ps1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed2c445..fbf94b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,7 @@ RUN \ fi # Stage 3 - Build runtime image -FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic +FROM ghcr.io/linuxserver/baseimage-alpine:3.17 ARG TARGETPLATFORM ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64} ARG BUILDPLATFORM diff --git a/docker-publish.ps1 b/docker-publish.ps1 index f66f38f..3e88b62 100755 --- a/docker-publish.ps1 +++ b/docker-publish.ps1 @@ -49,7 +49,7 @@ if (-Not $SkipPush.IsPresent) { $dockerArgs += @("--push") } -if (-Not $SkipCache.IsPresent) { +if ($SkipCache.IsPresent) { $dockerArgs += @("--no-cache") } @@ -65,4 +65,5 @@ $dockerArgs += @("--tag", "$($imageName):$($Version)" ) $dockerApps += @("--build-arg", "VERSION=$($Version)" ) Write-Host "Generating docker image $imageName for $Platforms" +Write-Host "Args: $dockerArgs" & docker $dockerArgs