Dockerfile字符集问题

  sre

        #centos
         RUN localedef -i zh_CN -f UTF-8 en_US.UTF-8
         ENV LANG en_US.UTF-8
        #ubuntu 
         RUN apt-get clean && apt-get update && apt-get install -y locales \
    locale-gen zh_CN.UTF-8 &&\
    DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
         ENV LANG zh_CN.UTF-8
         ENV LANGUAGE zh_CN:zh
         ENV LC_ALL zh_CN.UTF-8

LEAVE A COMMENT

Captcha Code