From bb4647b4bb4e14964cd546bb495487ba7c2d64cc Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Sun, 19 Feb 2023 10:25:39 +0100 Subject: [PATCH] CI: test --- wopiserver.Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wopiserver.Dockerfile b/wopiserver.Dockerfile index c419cc01..1f7c8757 100644 --- a/wopiserver.Dockerfile +++ b/wopiserver.Dockerfile @@ -14,10 +14,12 @@ LABEL maintainer="cernbox-admins@cern.ch" \ # prerequisites: we explicitly install g++ as it is required by grpcio but missing from its dependencies WORKDIR /app COPY requirements.txt . -RUN if [ '$BASEIMAGE' = 'python:3.10-slim-buster' ]; then \ - apt -y install g++; \ +RUN if command -v AAAapt &> /dev/null; then \ + echo "Using apt"; apt -y install g++; \ + elif command -v AAAapk &> /dev/null; then \ + echo "Using apk"; apk add g++; \ else \ - apk add g++; \ + echo "This distribution does not provide a supported package manager"; false; \ fi RUN pip3 install --upgrade pip setuptools && \ pip3 install --no-cache-dir --upgrade -r requirements.txt