From 40537846513a7782014b5d9dfecffa2afa5cb787 Mon Sep 17 00:00:00 2001 From: chiDT Date: Sun, 31 Aug 2025 20:55:55 +0900 Subject: [PATCH] .. --- .claude/settings.local.json | 4 +++- Dockerfile | 28 ++-------------------------- build.sh | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 27 deletions(-) create mode 100644 build.sh diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 5557eae..a1a7ea3 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,7 +1,9 @@ { "permissions": { "allow": [ - "Bash(git add:*)" + "Bash(git add:*)", + "Bash(git commit:*)", + "Bash(git push:*)" ], "deny": [], "ask": [] diff --git a/Dockerfile b/Dockerfile index 4501665..054a8e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ 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 \ + 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 \ && apt-get clean && rm -rf /var/lib/apt/lists/* @@ -23,32 +23,8 @@ RUN curl -q -L -o vscode.deb https://update.code.visualstudio.com/1.103.2/linux- && apt-get install ./vscode.deb \ && rm -rf ./vscode.deb /etc/apt/sources.list.d/vscode.sources -# install .NET 8 and .NET 9 -RUN curl -q -L -o packages-microsoft-prod.deb https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb \ - && dpkg -i packages-microsoft-prod.deb \ - && rm packages-microsoft-prod.deb \ - && apt-get update \ - && apt-get install -y dotnet-sdk-8.0 dotnet-sdk-9.0 \ - && apt-get clean && rm -rf /var/lib/apt/lists/* - -# install cursor ide -RUN curl -q -L -o cursor.deb https://downloader.cursor.sh/linux/appImage/x64 \ - && mv cursor.deb cursor.AppImage \ - && chmod +x cursor.AppImage \ - && ./cursor.AppImage --appimage-extract \ - && mv squashfs-root /opt/cursor \ - && ln -s /opt/cursor/cursor /usr/bin/cursor \ - && rm cursor.AppImage - # install claude code cli -RUN curl -q -L -o claude_cli.tar.gz https://github.com/anthropics/claude-cli/releases/latest/download/claude-cli-linux-x64.tar.gz \ - && tar -xzf claude_cli.tar.gz \ - && mv claude /usr/local/bin/claude \ - && chmod +x /usr/local/bin/claude \ - && rm claude_cli.tar.gz - -# install gemini cli -RUN npm install -g @google/generative-ai-cli +RUN npm install -g @anthropic-ai/claude-code COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..92a19d1 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Docker 이미지 빌드 스크립트 + +set -e + +IMAGE_NAME="lancard/xwindow-korean" +VERSION="latest" + +echo "🐳 Building Docker image: $IMAGE_NAME:$VERSION" + +# 빌드 시작 +docker build -t $IMAGE_NAME:$VERSION . + +echo "✅ Build completed successfully!" +echo "📋 Next steps:" +echo " - Test: docker run -p 3389:3389 $IMAGE_NAME:$VERSION" +echo " - Push: docker push $IMAGE_NAME:$VERSION" +echo " - Multi-platform: docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME:$VERSION --push ." \ No newline at end of file