Skip to content

Commit

Permalink
CI: test
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Feb 19, 2023
1 parent 1bf378a commit bb4647b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wopiserver.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb4647b

Please sign in to comment.