code-server / Dockerfile
SnowFlash383935's picture
Update Dockerfile
a2c9a65 verified
FROM ubuntu:22.04
# Установка необходимых пакетов
RUN apt-get update && \
apt-get install -y curl wget git openjdk-17-jdk-headless && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Установка code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh
# Установка Clojure CLI tools (без sudo!)
RUN curl -L -o install.sh https://download.clojure.org/install/linux-install-1.11.1.1413.sh && \
chmod +x install.sh && \
./install.sh && \
rm install.sh
# Установка Leiningen
RUN wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein && \
mv lein /usr/local/bin/ && \
chmod a+x /usr/local/bin/lein && \
lein version
# Создание рабочей директории
WORKDIR /home/coder
# Установка расширений VS Code
RUN code-server --install-extension betterthantomorrow.calva \
&& code-server --install-extension ms-toolsai.jupyter
# Открытие порта
EXPOSE 5000
# Запуск code-server без авторизации
CMD ["code-server", "--auth", "password", "--port", "5000", "--host", "0.0.0.0"]