SnowFlash383935 commited on
Commit
8db4775
·
verified ·
1 Parent(s): 250a393

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -4
Dockerfile CHANGED
@@ -1,5 +1,35 @@
1
- FROM ubuntu:latest
2
- RUN apt-get update -y
3
- RUN apt-get install git curl wget apt -y
 
 
 
 
 
 
4
  RUN curl -fsSL https://code-server.dev/install.sh | sh
5
- CMD code-server --auth none --port 5000 --host 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Установка необходимых пакетов
4
+ RUN apt-get update && \
5
+ apt-get install -y curl wget git openjdk-17-jdk-headless && \
6
+ apt-get clean && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # Установка code-server
10
  RUN curl -fsSL https://code-server.dev/install.sh | sh
11
+
12
+ # Установка Clojure CLI tools
13
+ RUN curl -L -o install.sh https://download.clojure.org/install/linux-install-1.11.1.1413.sh && \
14
+ chmod +x install.sh && \
15
+ sudo ./install.sh && \
16
+ rm install.sh
17
+
18
+ # Установка Leiningen (альтернатива)
19
+ RUN wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein && \
20
+ mv lein /usr/local/bin/ && \
21
+ chmod a+x /usr/local/bin/lein && \
22
+ lein version
23
+
24
+ # Создание рабочей директории
25
+ WORKDIR /home/coder
26
+
27
+ # Установка расширений VS Code (через code-server CLI)
28
+ RUN code-server --install-extension betterthantomorrow.calva \
29
+ && code-server --install-extension ms-toolsai.jupyter
30
+
31
+ # Открытие порта
32
+ EXPOSE 5000
33
+
34
+ # Запуск code-server без авторизации
35
+ CMD ["code-server", "--auth", "none", "--port", "5000", "--host", "0.0.0.0"]