From 07d342d0935ea9730578b5f100e57a150bdc71a9 Mon Sep 17 00:00:00 2001 From: Stefan Hynek <stefan.hynek@uni-goettingen.de> Date: Thu, 20 Apr 2023 11:12:23 +0200 Subject: [PATCH] fix(build): fix k8s compatibility issue and update dependencies use a "numeric" user in Dockerfile close #44 --- Dockerfile | 5 +++-- requirements.txt | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64919de..7d70690 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,10 +29,11 @@ COPY --from=builder /usr/local/lib/python3.8/site-packages/PyICU-2.8.1.dist-info # icu-dev package is nevertheless needed by the python library # hadolint ignore=DL3018 -RUN adduser -D repdav \ +RUN adduser -D repdav -u 1000 \ && apk add --no-cache icu-dev -USER repdav +# use a "numeric" user for k8s compatibility +USER 1000 COPY --chown=repdav requirements.txt / RUN pip install \ diff --git a/requirements.txt b/requirements.txt index 9209a44..0f5e915 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: CC0-1.0 -tgclients[icu]==0.8.0 +tgclients[icu]==0.9.0 cheroot==9.0.0 -sentry-sdk==1.11.1 -WsgiDAV==4.1.0 +sentry-sdk==1.19.1 +WsgiDAV==4.2.0 -- GitLab