From 2c7affb582656a20b70a6721ef3f49b8bf6bffce Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 18 Dec 2023 17:40:54 -0600 Subject: undo --platform --- .github/workflows/ci.yml | 4 ++-- Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df9d711e..d0ce8ea4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,8 +114,8 @@ jobs: echo "REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "BUILD_DATE=$(date --iso-8601=s)" >> $GITHUB_ENV - # - name: Set up QEMU - # uses: docker/setup-qemu-action@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 diff --git a/Dockerfile b/Dockerfile index 94174a9b..b405eee2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ # build static web content +# note: pin this to amd64 to speed it up, it is prohibitively slow under QEMU FROM --platform=$BUILDPLATFORM node:18-alpine3.18 AS web ARG VERSION=0.0.1.65534-local @@ -31,7 +32,7 @@ RUN bash ./bin/build --dotnet-only --version $VERSION RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSION --output ../../dist/${TARGETPLATFORM} # application -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime-deps:7.0-bookworm-slim AS slskd +FROM mcr.microsoft.com/dotnet/runtime-deps:7.0-bookworm-slim AS slskd ARG TARGETPLATFORM ARG TAG=0.0.1 ARG VERSION=0.0.1.65534-local -- cgit v1.2.3