Created
September 25, 2024 09:28
-
-
Save rkttu/9f991120c8339bee10f73e3d9bfacbae to your computer and use it in GitHub Desktop.
Create My Own WSL distro with Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
RUN sed -i -e 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list | |
RUN set -xe \ | |
&& apt -y update \ | |
&& apt -y install apt-utils tzdata locales | |
ENV TZ=Asia/Seoul | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ | |
&& echo $TZ > /etc/timezone | |
RUN set -xe && \ | |
dpkg-reconfigure --frontend=noninteractive tzdata && \ | |
sed -i -e 's/# ko_KR.UTF-8 UTF-8/ko_KR.UTF-8 UTF-8/' /etc/locale.gen && \ | |
echo 'LANG="ko_KR.UTF-8"' > /etc/default/locale && \ | |
dpkg-reconfigure --frontend=noninteractive locales && \ | |
update-locale | |
ENV LANG ko_KR.UTF-8 | |
ENV LANGUAGE ko_KR.UTF-8 | |
ENV LC_ALL ko_KR.UTF-8 | |
RUN yes | unminimize | |
RUN set -xe && \ | |
DEBIAN_FRONTEND=noninteractive TZ=Asia/Seoul apt -y install xubuntu-desktop language-pack-ko | |
RUN DEBIAN_FRONTEND=noninteractive apt -y install wget curl git vim nano dotnet-sdk-8.0 | |
ARG user=devenv | |
ARG home=/home/$user | |
RUN groupadd -g 1000 $user | |
RUN useradd -d $home -s /bin/bash -m $user -u 1000 -g 1000 && \ | |
echo $user:ubuntu | chpasswd && \ | |
adduser $user sudo | |
WORKDIR $home | |
USER $user | |
ENV HOME $home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment