Skip to content

Instantly share code, notes, and snippets.

@mytory
Created August 7, 2018 13:00
Show Gist options
  • Save mytory/fc136246b6547278ef0f705ef0a3334a to your computer and use it in GitHub Desktop.
Save mytory/fc136246b6547278ef0f705ef0a3334a to your computer and use it in GitHub Desktop.
Dockerfile basic template for Korean ubuntu user.
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
# repository
RUN sed -i 's|archive.ubuntu.com|mirror.kakao.com|g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
# timezone
RUN apt-get install --no-install-recommends -y tzdata
RUN ln -fs /usr/share/zoneinfo/Asia/Seoul /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
# locales
RUN apt-get install --no-install-recommends -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment