set locale, nvm added
This commit is contained in:
parent
29228057f6
commit
5cf5b7df6b
1 changed files with 31 additions and 19 deletions
50
Dockerfile
50
Dockerfile
|
|
@ -1,19 +1,21 @@
|
||||||
FROM debian:trixie
|
FROM debian:trixie
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
locales \
|
||||||
neovim \
|
git \
|
||||||
man-db \
|
neovim \
|
||||||
openssh-client \
|
man-db \
|
||||||
passwd \
|
openssh-client \
|
||||||
gcc \
|
passwd \
|
||||||
ripgrep \
|
gcc \
|
||||||
wl-clipboard \
|
ripgrep \
|
||||||
tmux \
|
wl-clipboard \
|
||||||
curl \
|
tmux \
|
||||||
python3-pip \
|
curl \
|
||||||
python3-venv \
|
python3-pip \
|
||||||
nodejs
|
python3-venv
|
||||||
|
|
||||||
|
RUN locale-gen ko_KR.UTF-8
|
||||||
|
|
||||||
ARG UID
|
ARG UID
|
||||||
ARG GID
|
ARG GID
|
||||||
|
|
@ -27,10 +29,10 @@ ENV CONFIG_PREFIX=${CONFIG_PREFIX:-personal}
|
||||||
ENV TERM=xterm-256color
|
ENV TERM=xterm-256color
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
groupadd -g "$GID" "$USERNAME"; \
|
groupadd -g "$GID" "$USERNAME"; \
|
||||||
useradd -m -u "$UID" -g "$USERNAME" -s /bin/bash "$USERNAME"; \
|
useradd -m -u "$UID" -g "$USERNAME" -s /bin/bash "$USERNAME"; \
|
||||||
mkdir -p /workspace; \
|
mkdir -p /workspace; \
|
||||||
chown "$USERNAME:$USERNAME" /workspace
|
chown "$USERNAME:$USERNAME" /workspace
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
|
@ -38,8 +40,16 @@ ENV HOME=/home/${USERNAME}
|
||||||
|
|
||||||
USER ${USERNAME}
|
USER ${USERNAME}
|
||||||
|
|
||||||
RUN python3 -m venv $HOME/py && $HOME/py/bin/pip install pyright
|
RUN python3 -m venv $HOME/py \
|
||||||
RUN echo "export PATH=\"$HOME/py/bin:$PATH\"" >> $HOME/.bashrc
|
&& $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
|
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
|
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"]
|
CMD ["/bin/bash"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue