Fixed npm version on ubi9 based image
Build and Push Alpine NodeJS Image to docker.io Registry / Build and push nodejs alpine based to docker.io (push) Successful in 4m46s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push nodejs alpine based to git.winteraccess.id (push) Successful in 1m15s Details
Build and Push UBI9 NodeJS Image to docker.io Registry / Build and push nodejs ubi9 based to docker.io (push) Successful in 10m11s Details
Build and Push UBI9 NodeJS Image to git.winteraccess.id Registry / Build and push nodejs ubi9 based to git.winteraccess.id (push) Successful in 1m56s Details
Build and Push UBI9 NodeJS Image to docker.io Registry / Build and push nodejs ubi9-micro based to docker.io (push) Successful in 4m25s Details
Build and Push UBI9 NodeJS Image to git.winteraccess.id Registry / Build and push nodejs ubi9-micro based to git.winteraccess.id (push) Successful in 1m30s Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-14 03:54:08 +07:00
parent 6c754463ca
commit bf2b0b0363
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ FROM ${REGISTRY_URL}/alpine:${ALPINE_VERSION}
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com" LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
USER root USER root
WORKDIR / WORKDIR /tmp
# Set Cache Directory # Set Cache Directory
ENV NODE_DIR=/usr/local/share/nodejs ENV NODE_DIR=/usr/local/share/nodejs

View File

@ -45,8 +45,7 @@ RUN npm -g config set cache ${NPM_CACHE_DIR} && \
# Install Yarn # Install Yarn
RUN --mount=type=cache,target=${NPM_CACHE_DIR} \ RUN --mount=type=cache,target=${NPM_CACHE_DIR} \
npm i -g npm@latest && \ npm i -g yarn && \
npm i -g yarn@latest && \
yarn config set cache-folder ${YARN_CACHE_DIR} && \ yarn config set cache-folder ${YARN_CACHE_DIR} && \
dnf -y autoremove && \ dnf -y autoremove && \
dnf -y clean all dnf -y clean all