diff --git a/README.md b/README.md index d7862865..24ddde87 100644 --- a/README.md +++ b/README.md @@ -251,11 +251,13 @@ The response format will be: ``` docker build -f app-config/api-app/Dockerfile -t api-app . docker build -f app-config/calculator-app/Dockerfile -t calculator-app . -docker build -f app-config/auth-service/Dockerfile -t auth-service . +docker build ./app-config/auth-service -t auth-service ``` If you are using a computer with ARM CPU (Mac M1/2/3), then add the arg `--platform linux/arm64` to the docker build cmd. +If you need to debug the Docker build, add the args `--no-cache --progress=plain` to see a more verbose output in your terminal. + Get the client secret from the CERN Application portal for the `caimira-test` app. See [CERN-SSO-integration](#cern-sso-integration) for more info. ``` read CLIENT_SECRET diff --git a/app-config/auth-service/Dockerfile b/app-config/auth-service/Dockerfile index 0a78f5f4..aeed12f9 100644 --- a/app-config/auth-service/Dockerfile +++ b/app-config/auth-service/Dockerfile @@ -1,7 +1,8 @@ FROM registry.cern.ch/docker.io/condaforge/mambaforge as conda -RUN mamba create --yes -p /opt/app python=3.9 +RUN mamba create --yes -p /opt/app python=3.12 COPY . /opt/app-source + RUN conda run -p /opt/app python -m pip install /opt/app-source RUN cd /opt/app \ && find -name '*.a' -delete \ diff --git a/app-config/docker-compose.yml b/app-config/docker-compose.yml index f445bde6..e872644b 100644 --- a/app-config/docker-compose.yml +++ b/app-config/docker-compose.yml @@ -50,4 +50,3 @@ services: condition: service_started auth-service: condition: service_started - user: ${CURRENT_UID}