diff --git a/onyxia-api/Dockerfile b/onyxia-api/Dockerfile index d18a835d..340dcb66 100644 --- a/onyxia-api/Dockerfile +++ b/onyxia-api/Dockerfile @@ -3,9 +3,9 @@ FROM eclipse-temurin:17-jre RUN apt-get update && apt-get install -y apt-transport-https gnupg2 RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - RUN echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list -RUN apt-get update && apt-get install -y kubectl +RUN apt-get update && apt-get install -y kubectl=1.24.4-00 # Install helm -RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash +RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | DESIRED_VERSION=v3.9.4 bash COPY target/*.jar app.jar RUN groupadd --gid 101 --system onyxia && \ useradd --system --uid 101 --create-home --home-dir /var/cache/onyxia --shell /sbin/nologin --gid onyxia --comment onyxia onyxia