Yahudaxd commited on
Commit
4a03e46
·
verified ·
1 Parent(s): 1fcc8ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +52 -9
Dockerfile CHANGED
@@ -1,18 +1,61 @@
1
- # Resmi code-server image
2
  FROM codercom/code-server:latest
3
 
4
- # Workspace olarak HF yazılabilir alanını kullan
5
  WORKDIR /workspace
6
-
7
- # HOME ve CONFIG dizinini workspace'e yönlendir
8
  ENV HOME=/workspace
9
  ENV CONFIG_DIR=/workspace/.config
10
-
11
- # Gereksiz telemetry kapat
12
  ENV DISABLE_TELEMETRY=true
13
-
14
- # Hugging Face Spaces default port
15
  EXPOSE 7860
16
 
17
- # Public erişim (şifre yok)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]
 
1
+ ### Dockerfile
2
  FROM codercom/code-server:latest
3
 
 
4
  WORKDIR /workspace
 
 
5
  ENV HOME=/workspace
6
  ENV CONFIG_DIR=/workspace/.config
 
 
7
  ENV DISABLE_TELEMETRY=true
 
 
8
  EXPOSE 7860
9
 
10
+ # Sistem paketleri ve diller
11
+ RUN apt-get update && apt-get install -y \
12
+ python2 python2-dev python3 python3-dev python3-pip python-is-python3 \
13
+ curl wget git unzip build-essential locales \
14
+ nodejs npm \
15
+ golang-go \
16
+ perl \
17
+ rustc cargo \
18
+ openjdk-17-jdk \
19
+ ruby-full \
20
+ php-cli \
21
+ zsh \
22
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
23
+
24
+ # Pip2 yükleme
25
+ RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
26
+ && python2 get-pip.py \
27
+ && rm get-pip.py
28
+
29
+ # Node.js multi version (nvm)
30
+ ENV NVM_DIR=/workspace/.nvm
31
+ RUN mkdir -p $NVM_DIR \
32
+ && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.6/install.sh | bash
33
+ ENV NODE_VERSION=20
34
+ RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION"
35
+ ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
36
+
37
+ # Node global packages
38
+ RUN npm install -g yarn typescript eslint prettier
39
+
40
+ # Go workspace
41
+ ENV GOPATH=/workspace/go
42
+ ENV PATH=$GOPATH/bin:$PATH
43
+
44
+ # Oh My Zsh kurulum
45
+ RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
46
+ ENV SHELL=/usr/bin/zsh
47
+ ENV ZSH=$HOME/.oh-my-zsh
48
+
49
+ # VS Code uzantıları
50
+ RUN code-server --install-extension ms-python.python \
51
+ && code-server --install-extension golang.go \
52
+ && code-server --install-extension dbaeumer.vscode-eslint \
53
+ && code-server --install-extension esbenp.prettier-vscode \
54
+ && code-server --install-extension eamodio.gitlens \
55
+ && code-server --install-extension ms-vscode.go
56
+
57
+ # Root terminal
58
+ USER root
59
+
60
+ # Public erişim
61
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]