From 02ba2a8c27aef219c2f091f48231a6cebf42336d Mon Sep 17 00:00:00 2001 From: Lutfa Ibtihaji Ilham Date: Thu, 5 Dec 2024 11:55:32 +0700 Subject: [PATCH] Add nodejs-20-debian-oci --- nodejs/Dockerfile-20_debian-oci | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 nodejs/Dockerfile-20_debian-oci diff --git a/nodejs/Dockerfile-20_debian-oci b/nodejs/Dockerfile-20_debian-oci new file mode 100644 index 0000000..8e48dbe --- /dev/null +++ b/nodejs/Dockerfile-20_debian-oci @@ -0,0 +1,46 @@ +FROM debian:11-slim + +LABEL org.opencontainers.image.authors="EWZ Engineering " \ + io.k8s.description="Debian (11) OCI Node.js 20" \ + io.k8s.display-name="Debian (11) OCI Node.js 20" \ + io.openshift.non-scalable="false" \ + io.openshift.tags="runner,builder,debian,nodejs,oracle" \ + summary="Virtual Machine (VM) like container platform OCI with Node.js 20" \ + vendor="Debian" \ + release="1" + +ENV LANG="C.UTF-8" \ + LC_ALL="C.UTF-8" \ + TZ="Asia/Jakarta" \ + DEBIAN_FRONTEND="noninteractive" + +WORKDIR /usr/src/app + +# Install Node.js +ENV NODE_VERSION="20.18.1" +COPY install_nodejs_debian.sh . +RUN /bin/sh install_nodejs_debian.sh + +# Install yarn +ENV YARN_VERSION="1.22.19" +COPY install_yarn_debian.sh . +RUN /bin/sh install_yarn_debian.sh + +# Install instantclient +ENV INSTANT_CLIENT_VERSION="21.7.0" \ + ORACLE_BASE="/opt/oracle/instantclient" \ + ORACLE_HOME="/opt/oracle/instantclient" \ + TNS_ADMIN="/opt/oracle/instantclient" \ + LD_LIBRARY_PATH="/opt/oracle/instantclient:${LD_LIBRARY_PATH}" \ + PATH="/opt/oracle/instantclient:${PATH}" +COPY install_oci_debian.sh . +RUN /bin/sh install_oci_debian.sh + +# Custom configuration for Debian +COPY configure_debian.sh . +RUN /bin/sh configure_debian.sh + +COPY docker-entrypoint.sh /usr/local/bin + +ENTRYPOINT ["docker-entrypoint.sh"] +