mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
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.
18 lines
629 B
Docker
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
|