From 3ff9d2ddb0fcc234255ce0fa287aeffe195644d4 Mon Sep 17 00:00:00 2001 From: chiDT Date: Sun, 31 Aug 2025 21:24:53 +0900 Subject: [PATCH] =?UTF-8?q?Debian=20bookworm=20=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EB=B0=8F=20NodeSource=EC=97=90=EC=84=9C=20Node.js=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=98=EC=97=AC=20nod?= =?UTF-8?q?e-isexe=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 17 ++++++++++++----- Dockerfile.test | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 Dockerfile.test diff --git a/Dockerfile b/Dockerfile index ef120e7..37dd392 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ -FROM debian:trixie +FROM debian:bookworm ENV DEBIAN_FRONTEND=noninteractive # 한국 Debian 미러 소스로 변경 -RUN echo "deb http://ftp.kr.debian.org/debian trixie main" > /etc/apt/sources.list && \ - echo "deb http://ftp.kr.debian.org/debian trixie-updates main" >> /etc/apt/sources.list && \ - echo "deb http://ftp.kr.debian.org/debian-security trixie-security main" >> /etc/apt/sources.list +RUN echo "deb http://ftp.kr.debian.org/debian bookworm main" > /etc/apt/sources.list && \ + echo "deb http://ftp.kr.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list && \ + echo "deb http://ftp.kr.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list + +RUN sed -i 's|deb.debian.org|ftp.kaist.ac.kr|g' /etc/apt/sources.list && \ + sed -i 's|security.debian.org|ftp.kaist.ac.kr/debian-security|g' /etc/apt/sources.list RUN apt-get update @@ -20,9 +23,13 @@ RUN sed -i 's/^# *ko_KR.UTF-8 UTF-8/ko_KR.UTF-8 UTF-8/' /etc/locale.gen && local # install modules RUN apt-get install -y dbus-x11 x11-xserver-utils xfce4 xfce4-goodies xorgxrdp xrdp tumbler \ ibus ibus-gtk3 fcitx5-hangul fcitx5-config-qt fcitx5-frontend-gtk3 fcitx5-frontend-gtk4 fcitx5-frontend-qt5 fonts-noto-cjk iputils-ping \ - sudo nano vim net-tools chromium git curl npm --fix-missing \ + sudo nano vim net-tools chromium git curl --fix-missing \ && apt-get clean && rm -rf /var/lib/apt/lists/* +# Node.js와 npm을 NodeSource에서 설치 (더 안정적) +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs + # install vscode RUN curl -q -L -o vscode.deb https://update.code.visualstudio.com/1.103.2/linux-deb-x64/stable \ && apt-get install ./vscode.deb \ diff --git a/Dockerfile.test b/Dockerfile.test new file mode 100644 index 0000000..a8d98e8 --- /dev/null +++ b/Dockerfile.test @@ -0,0 +1,35 @@ +FROM debian:trixie + +ENV DEBIAN_FRONTEND=noninteractive + +# 한국 Debian 미러 소스로 변경 +RUN echo "deb http://ftp.kr.debian.org/debian trixie main" > /etc/apt/sources.list && \ + echo "deb http://ftp.kr.debian.org/debian trixie-updates main" >> /etc/apt/sources.list && \ + echo "deb http://ftp.kr.debian.org/debian-security trixie-security main" >> /etc/apt/sources.list + +RUN apt-get update + +# 기본 패키지만 설치 (빠른 테스트용) +RUN apt-get install -y \ + locales \ + xfce4 \ + xfce4-goodies \ + xorgxrdp \ + xrdp \ + --fix-missing \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +# 한국어 설정 +ENV TZ=Asia/Seoul +ENV LANG=ko_KR.UTF-8 +ENV LANGUAGE=ko_KR:ko +ENV LC_ALL=ko_KR.UTF-8 + +RUN sed -i 's/^# *ko_KR.UTF-8 UTF-8/ko_KR.UTF-8 UTF-8/' /etc/locale.gen && \ + locale-gen $LANG && \ + update-locale LANG=$LANG + +EXPOSE 3389 + +# 간단한 시작 명령 +CMD ["/bin/bash"]