From 2828b3bbc348bc1d6f4557983e826f979a05b487 Mon Sep 17 00:00:00 2001 From: ticccco <23436953+LucasPlacentino@users.noreply.github.com> Date: Tue, 5 Dec 2023 17:30:47 +0100 Subject: [PATCH 1/2] Update Dockerfile - add extra index url for wheel --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e0021d..a14845d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ WORKDIR /usr/src/ulbdiscordbot RUN python3 -m pip install --upgrade pip COPY requirements.txt ./ -#RUN pip3 install --extra-index-url https://alpine-wheels.github.io/index --no-cache-dir -r requirements.txt # if wheels dependencies build errors when using alpine -RUN pip3 install --no-cache-dir -r requirements.txt +RUN pip3 install --extra-index-url https://alpine-wheels.github.io/index --no-cache-dir -r requirements.txt # if wheels dependencies build errors when using alpine +#RUN pip3 install --no-cache-dir -r requirements.txt COPY . . From 7efe538ea0be71ae53f272a589eb84dd48a09dfe Mon Sep 17 00:00:00 2001 From: ticccco <23436953+LucasPlacentino@users.noreply.github.com> Date: Tue, 5 Dec 2023 17:36:54 +0100 Subject: [PATCH 2/2] Update PyYAML to 6.0.1 see https://discuss.python.org/t/getting-error-while-building-docker-image-based-on-alpine/32780/4 and https://github.com/yaml/pyyaml/issues/724#issuecomment-1638587228 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cc8bb6d..8daee22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -37,7 +37,7 @@ pyparsing==3.0.9 python-dateutil==2.8.2 python-dotenv==0.20.0 pytz==2022.1 -PyYAML==6.0 +PyYAML==6.0.1 reorder-python-imports==3.8.2 requests==2.28.1 requests-oauthlib==1.3.1