기록저장 블로그

Docker ubuntu 한글패치 적용하기 본문

카테고리 없음

Docker ubuntu 한글패치 적용하기

코딩하는 히라미 2020. 7. 29. 16:03

Dockerfile 입력

 FROM ubuntu:18.04

RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list \
    && apt-get update \
    && apt-get install -y \ 
    language-pack-ko \
    tzdata \ 
    locales \
    && rm -rf /var/lib/apt/lists/*

RUN localedef -i ko_KR -f UTF-8 ko_KR.UTF-8

ENV TZ='Asia/Seoul' \
    LANGUAGE=ko_KR.UTF-8 \
    LANG=ko_KR.UTF-8 \
    LC_ALL=ko_KR.UTF-8 \
    LC_CTYPE=ko_KR.UTF-8 \
    LC_MESSAGES=ko_KR.UTF-8

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
    && echo $(date +%r)

CMD /bin/bash

빌드

$ docker build --tag needon_ubuntu:18.04 .
Comments