Skip to content

Commit

Permalink
Use piwheels repo in Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Jan 14, 2024
1 parent 3067dea commit c038d81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Docker/PlexAniSync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM python:3.11 AS builder

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN apt-get update && \
apt-get install -y \
build-essential rustc git \
build-essential \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

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
Expand Down
2 changes: 2 additions & 0 deletions Docker/PlexAniSync/pip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[global]
extra-index-url=https://www.piwheels.org/simple
3 changes: 1 addition & 2 deletions Docker/Tautulli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM python:3.9 AS builder

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN apt-get update && \
apt-get install -y \
build-essential rustc git \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip
COPY Docker/Tautulli/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
Expand Down
2 changes: 2 additions & 0 deletions Docker/Tautulli/pip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[global]
extra-index-url=https://www.piwheels.org/simple

0 comments on commit c038d81

Please sign in to comment.