diff --git a/Dockerfile.release b/Dockerfile.release index 8a92e732..17293061 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -12,13 +12,13 @@ FROM --platform=${TARGETPLATFORM} mcr.microsoft.com/windows/nanoserver:ltsc2022 # Use build arguments to select the appropriate binary for Linux FROM linux-base AS linux ARG APP -COPY --from=dist-files /${APP} /app +COPY --from=dist-files ./${APP} /app CMD /app # Use build arguments to select the appropriate binary for Windows FROM windows-base AS windows ARG APP -COPY --from=dist-files /${APP}.exe /app.exe +COPY --from=dist-files ./${APP}.exe /app.exe CMD /app.exe # Final stage: dynamically select between Linux and Windows stages based on TARGETOS argument