我把區域設置下面的代碼到我dockerfile,搬運工Ubuntu的/ bin/sh的:1:現場根:沒有發現
FROM node:4-onbuild
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
,但它給我的錯誤
/bin/sh: 1: locale-gen: not found
The command '/bin/sh -c locale-gen en_US.UTF-8' returned a non-zero code: 127
任何理念?
也許你必須使用'sudo apt-get -y install locales'來安裝'locales'? – edwinksl