Debian bookworm 사용 및 NodeSource에서 Node.js 설치로 변경하여 node-isexe 문제 해결
This commit is contained in:
17
Dockerfile
17
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 \
|
||||
|
||||
Reference in New Issue
Block a user