Skip to content

Commit

Permalink
Only build on arm/v6 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman authored May 12, 2024
1 parent 40275c2 commit d7ea125
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion Docker/PlexAniSync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d7ea125

Please sign in to comment.