mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Set LANG by default
Ruby docker images officially provided by ruby-lang.org set `LANG` as `C.UTF-8` by default.
https://hub.docker.com/r/rubylang/ruby/
36c5d8b68e/Dockerfile (L3)
https://github.com/docker-library/ruby/issues/45#issuecomment-117298344
> I'd rather see something more official from either Ruby or Rails upstreams
> recommending a UTF-8 locale by default than just the anecdote that it's
> "more common" or "more convenient".
I think it's the one so we should set it by default.
This commit is contained in:
parent
644570a086
commit
8e49e25b59
19 changed files with 19 additions and 0 deletions
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.5
|
ENV RUBY_MAJOR 2.5
|
||||||
ENV RUBY_VERSION 2.5.8
|
ENV RUBY_VERSION 2.5.8
|
||||||
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.6
|
ENV RUBY_MAJOR 2.6
|
||||||
ENV RUBY_VERSION 2.6.6
|
ENV RUBY_VERSION 2.6.6
|
||||||
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.7
|
ENV RUBY_MAJOR 2.7
|
||||||
ENV RUBY_VERSION 2.7.1
|
ENV RUBY_VERSION 2.7.1
|
||||||
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.7
|
ENV RUBY_MAJOR 2.7
|
||||||
ENV RUBY_VERSION 2.7.1
|
ENV RUBY_VERSION 2.7.1
|
||||||
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.7
|
ENV RUBY_MAJOR 2.7
|
||||||
ENV RUBY_VERSION 2.7.1
|
ENV RUBY_VERSION 2.7.1
|
||||||
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR 2.7
|
ENV RUBY_MAJOR 2.7
|
||||||
ENV RUBY_VERSION 2.7.1
|
ENV RUBY_VERSION 2.7.1
|
||||||
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
|
||||||
|
|
|
@ -11,6 +11,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR %%VERSION%%
|
ENV RUBY_MAJOR %%VERSION%%
|
||||||
ENV RUBY_VERSION %%FULL_VERSION%%
|
ENV RUBY_VERSION %%FULL_VERSION%%
|
||||||
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
||||||
|
|
|
@ -8,6 +8,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR %%VERSION%%
|
ENV RUBY_MAJOR %%VERSION%%
|
||||||
ENV RUBY_VERSION %%FULL_VERSION%%
|
ENV RUBY_VERSION %%FULL_VERSION%%
|
||||||
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
||||||
|
|
|
@ -22,6 +22,7 @@ RUN set -eux; \
|
||||||
echo 'update: --no-document'; \
|
echo 'update: --no-document'; \
|
||||||
} >> /usr/local/etc/gemrc
|
} >> /usr/local/etc/gemrc
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
ENV RUBY_MAJOR %%VERSION%%
|
ENV RUBY_MAJOR %%VERSION%%
|
||||||
ENV RUBY_VERSION %%FULL_VERSION%%
|
ENV RUBY_VERSION %%FULL_VERSION%%
|
||||||
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%
|
||||||
|
|
Loading…
Reference in a new issue