From db753f5e722db62e6bf8aad0e9204eb17597c15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Thu, 30 May 2024 09:14:06 +0200 Subject: [PATCH] Add a new Dockerfile.www-gitlab-com-debian-bookworm-ruby-3.2-node-20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- ...itlab-com-debian-bookworm-ruby-3.2-node-20 | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile.www-gitlab-com-debian-bookworm-ruby-3.2-node-20 diff --git a/Dockerfile.www-gitlab-com-debian-bookworm-ruby-3.2-node-20 b/Dockerfile.www-gitlab-com-debian-bookworm-ruby-3.2-node-20 new file mode 100644 index 0000000..d3fdf59 --- /dev/null +++ b/Dockerfile.www-gitlab-com-debian-bookworm-ruby-3.2-node-20 @@ -0,0 +1,28 @@ +ARG GCLOUD_VERSION=413.0.0 + +# Google-cloud-sdk +# +# gsutil 5.18 unnecessarily requires the storage.buckets.get +# permission: https://github.com/GoogleCloudPlatform/gsutil/issues/1663 +FROM gcr.io/google.com/cloudsdktool/cloud-sdk:$GCLOUD_VERSION as gcloud-sdk +FROM ruby:3.2.4-slim-bookworm +# pupulated by docker buildx build --platform flag +ARG TARGETARCH + +# Install Google Cloud SDK for deploys via rsync +COPY --from=gcloud-sdk /usr/lib/google-cloud-sdk /usr/lib/google-cloud-sdk +COPY --from=gcloud-sdk /usr/share/google-cloud-sdk /usr/share/google-cloud-sdk +RUN cd /usr/bin && find ../lib/google-cloud-sdk/bin -type f -executable -exec ln -s {} \;; cd - + +ADD /scripts/ /scripts/ +ADD /patches /patches/ + +ENV NODE_INSTALL_VERSION=20.12.2 +ENV YARN_INSTALL_VERSION=1.22.19 +RUN /scripts/install-www-gitlab-com + +# Set UTF-8 http://jaredmarkell.com/docker-and-locales/ +# Must be set after install-essentials is run +ENV LANG C.UTF-8 +ENV LANGUAGE C +ENV LC_ALL C.UTF-8