docker ubuntu /bin/sh: 1: locale-gen: not found

后端 未结 2 478
遥遥无期
遥遥无期 2021-01-30 12:06

I put the locale setting codes below into my dockerfile,

FROM node:4-onbuild

# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_U         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 12:57

    Thanks for your comment, edwinksl. I updated my dockerfile below which solved the locale-gen error:

    FROM node:4-onbuild
    
    # Set the locale
    RUN apt-get clean && apt-get update && apt-get install -y locales
    RUN locale-gen en_US.UTF-8
    

提交回复
热议问题