gitlab-build-images/Dockerfile.www-gitlab-com-debian-bullseye-ruby-3.0-node-16
Stan Hu d30defba8b
Rename www-gitlab-com image to include Debian version
https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/575/diffs
quietly updated the base image from Debian buster to bullseye, but
this broke native gems that depend on the buster glibc version. To
avoid this problem in the future, include the Debian version in the
image name.
2022-08-14 21:43:14 -07:00

18 lines
629 B
Docker

FROM gcr.io/google.com/cloudsdktool/cloud-sdk as gcloud-sdk
FROM ruby:3.0.4-slim-bullseye
# 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/
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