Mirdehghan commited on
Commit
3f73cb6
·
verified ·
1 Parent(s): c0cb92f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -2,14 +2,18 @@ FROM codercom/code-server:latest
2
 
3
  USER root
4
 
5
- # نصب git و ابزارهای پایه
6
- RUN apt update && apt install -y git curl
7
 
8
- # تنظیم پسورد
9
- ENV PASSWORD=1234
 
 
 
 
10
 
11
- # پورت مورد استفاده HF
 
12
  EXPOSE 7860
13
 
14
- # اجرای code-server روی پورت 7860
15
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password"]
 
2
 
3
  USER root
4
 
5
+ # حذف node قدیمی ر صورت وجود)
6
+ RUN apt remove -y nodejs npm || true
7
 
8
+ # نصب Node 22 رسمی
9
+ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
10
+ apt install -y nodejs
11
+
12
+ # تست نسخه
13
+ RUN node -v && npm -v
14
 
15
+ ENV PASSWORD=1234
16
+ WORKDIR /home/coder/project
17
  EXPOSE 7860
18
 
 
19
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password"]