From 5fa55d6bd66a23ab6d560fe3a6002a17b7fb0cb6 Mon Sep 17 00:00:00 2001 From: Lutfa Ibtihaji Ilham Date: Sun, 8 Dec 2024 13:53:04 +0700 Subject: [PATCH] Add build nodesjs-20-alpine --- nodejs/Dockerfile-20_alpine | 35 +++++++++++++++++++++++++++++++++ nodejs/install_nodejs_alpine.sh | 3 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 nodejs/Dockerfile-20_alpine diff --git a/nodejs/Dockerfile-20_alpine b/nodejs/Dockerfile-20_alpine new file mode 100644 index 0000000..108054f --- /dev/null +++ b/nodejs/Dockerfile-20_alpine @@ -0,0 +1,35 @@ +FROM alpine:3.16 + +LABEL org.opencontainers.image.authors="EWZ Engineering " \ + io.k8s.description="Alpine (3.16) Node.js 20" \ + io.k8s.display-name="Alpine (3.16) Node.js 20" \ + io.openshift.non-scalable="false" \ + io.openshift.tags="runner,builder,alpine,nodejs" \ + summary="Virtual Machine (VM) like container platform with Node.js 20" \ + vendor="Alpine" \ + release="1" + +ENV LANG="C.UTF-8" \ + LC_ALL="C.UTF-8" \ + TZ="Asia/Jakarta" + +WORKDIR /usr/src/app + +# Install Node.js +ENV NODE_VERSION="20.18.1" +COPY install_nodejs_alpine.sh . +RUN /bin/sh install_nodejs_alpine.sh + +# Install yarn +ENV YARN_VERSION="1.22.19" +COPY install_yarn_alpine.sh . +RUN /bin/sh install_yarn_alpine.sh + +# Custom configuration for Alpine Linux +COPY configure_alpine.sh . +RUN /bin/sh configure_alpine.sh + +COPY docker-entrypoint.sh /usr/local/bin + +ENTRYPOINT ["docker-entrypoint.sh"] + diff --git a/nodejs/install_nodejs_alpine.sh b/nodejs/install_nodejs_alpine.sh index e0e6bed..359909c 100644 --- a/nodejs/install_nodejs_alpine.sh +++ b/nodejs/install_nodejs_alpine.sh @@ -52,7 +52,8 @@ else \ DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ A48C2BEE680E841632CD4E44F07496B3EB3C1762 \ 108F52B48DB57BB0CC439B2997B01419BD92F80A \ - B9E2F5981AA6E0CD28160D9FF13993A75599653C; \ + B9E2F5981AA6E0CD28160D9FF13993A75599653C \ + CC68F5A3106FF448322E48ED27F5E38D5B0A215F; \ do \ gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "${key}" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${key}"; \ done; \