diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 7091fcf..f1a5b5b 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -11,7 +11,7 @@ FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION} LABEL maintainer=" aprimediet@gmail.com" USER root -WORKDIR / +WORKDIR /tmp # Set Cache Directory ENV NODE_DIR=/usr/local/share/nodejs diff --git a/Dockerfile.ubi9 b/Dockerfile.ubi9 index cd35dd5..b35a7fb 100644 --- a/Dockerfile.ubi9 +++ b/Dockerfile.ubi9 @@ -45,8 +45,7 @@ RUN npm -g config set cache ${NPM_CACHE_DIR} && \ # Install Yarn RUN --mount=type=cache,target=${NPM_CACHE_DIR} \ - npm i -g npm@latest && \ - npm i -g yarn@latest && \ + npm i -g yarn && \ yarn config set cache-folder ${YARN_CACHE_DIR} && \ dnf -y autoremove && \ dnf -y clean all