From 95b7793e1f5b74da63e8213ec1271bc68357a66f Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Fri, 19 Jul 2024 08:06:43 +0200 Subject: [PATCH] Install dependences individually to detect problem --- Dockerfile | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index a502b8e2..82058907 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,19 +66,15 @@ VOLUME [ "/root" ] # Build dependencies COPY --from=builder /app/requirements.txt requirements.txt -RUN apk add --no-cache --virtual .build \ - build-base \ - krb5-dev \ - libffi-dev \ - librsync-dev \ - libxml2-dev \ - libxslt-dev \ - openssl-dev \ - cargo \ - # Runtime dependencies, based on https://gitlab.com/duplicity/duplicity/-/blob/master/requirements.txt - && pip install --no-cache-dir -r requirements.txt \ - && apk del .build \ - && rm -rf /root/.cargo +# Instalar dependencias de construcción de manera individual +RUN apk update && apk add --no-cache --virtual .build build-base && sync +RUN apk add --no-cache --virtual .build krb5-dev && sync +RUN apk add --no-cache --virtual .build libffi-dev && sync +RUN apk add --no-cache --virtual .build librsync-dev && sync +RUN apk add --no-cache --virtual .build libxml2-dev && sync +RUN apk add --no-cache --virtual .build libxslt-dev && sync +RUN apk add --no-cache --virtual .build openssl-dev && sync +RUN apk add --no-cache --virtual .build cargo && sync COPY bin/* /usr/local/bin/ RUN chmod a+rx /usr/local/bin/* && sync