diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 7c4cacf..ed62227 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -40,7 +40,11 @@ jobs: echo "DOCKER_IO=true" >> $GITHUB_ENV fi - echo "PLATFORMS=${{ inputs.platforms }}" >> $GITHUB_ENV + if [[ ${{ inputs.eventname }} == 'pull_request' ]]; then + echo "PLATFORMS=linux/arm/v6" >> $GITHUB_ENV + else + echo "PLATFORMS=${{ inputs.platforms }}" >> $GITHUB_ENV + fi - name: Checkout repository uses: actions/checkout@v4 - name: Set up QEMU diff --git a/Docker/PlexAniSync/Dockerfile b/Docker/PlexAniSync/Dockerfile index b31e734..957f251 100644 --- a/Docker/PlexAniSync/Dockerfile +++ b/Docker/PlexAniSync/Dockerfile @@ -13,7 +13,10 @@ RUN pip install --upgrade pip COPY Docker/PlexAniSync/pip.conf /etc/pip.conf COPY requirements.txt . # install dependencies to the local user directory (eg. /root/.local) -RUN pip install --user --no-warn-script-location -r requirements.txt +RUN --mount=type=tmpfs,target=/root/.cargo \ + CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \ + CARGO_HOME=/root/.cargo \ + pip install --user --no-warn-script-location -r requirements.txt FROM python:3.12-slim