diff --git a/Dockerfile b/Dockerfile index c4484b4..3c5e4a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,21 @@ FROM debian:trixie RUN apt-get update && apt-get install -y \ - git \ - neovim \ - man-db \ - openssh-client \ - passwd \ - gcc \ - ripgrep \ - wl-clipboard \ - tmux \ - curl \ - python3-pip \ - python3-venv \ - nodejs + locales \ + git \ + neovim \ + man-db \ + openssh-client \ + passwd \ + gcc \ + ripgrep \ + wl-clipboard \ + tmux \ + curl \ + python3-pip \ + python3-venv + +RUN locale-gen ko_KR.UTF-8 ARG UID ARG GID @@ -27,10 +29,10 @@ ENV CONFIG_PREFIX=${CONFIG_PREFIX:-personal} ENV TERM=xterm-256color RUN set -eux; \ - groupadd -g "$GID" "$USERNAME"; \ - useradd -m -u "$UID" -g "$USERNAME" -s /bin/bash "$USERNAME"; \ - mkdir -p /workspace; \ - chown "$USERNAME:$USERNAME" /workspace + groupadd -g "$GID" "$USERNAME"; \ + useradd -m -u "$UID" -g "$USERNAME" -s /bin/bash "$USERNAME"; \ + mkdir -p /workspace; \ + chown "$USERNAME:$USERNAME" /workspace WORKDIR /workspace @@ -38,8 +40,16 @@ ENV HOME=/home/${USERNAME} USER ${USERNAME} -RUN python3 -m venv $HOME/py && $HOME/py/bin/pip install pyright -RUN echo "export PATH=\"$HOME/py/bin:$PATH\"" >> $HOME/.bashrc +RUN python3 -m venv $HOME/py \ + && $HOME/py/bin/pip install pyright \ + && echo "export PATH=\"$HOME/py/bin:$PATH\"" >> $HOME/.bashrc + +ENV NVM_DIR=${HOME}/.nvm + +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash \ + && . $NVM_DIR/nvm.sh \ + && nvm install --lts \ + && npm install -g typescript-language-server COPY --chown=${USERNAME}:${GID} ${CONFIG_PREFIX}.gitconfig /home/${USERNAME}/.gitconfig @@ -47,5 +57,7 @@ COPY --chown=${USERNAME}:${GID} .config/nvim /home/${USERNAME}/.config/nvim COPY --chown=${USERNAME}:${GID} .tmux.conf /home/${USERNAME}/.tmux.conf +RUN locale-gen ko_KR.UTF-8 && echo 'export LANG=ko_KR.UTF-8' >> ~/.bashrc + CMD ["/bin/bash"]