Yahudaxd commited on
Commit
6b4cb37
·
verified ·
1 Parent(s): 137bb07

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -6
Dockerfile CHANGED
@@ -1,14 +1,21 @@
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 \
@@ -26,7 +33,9 @@ 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
@@ -37,16 +46,22 @@ ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
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 \
@@ -54,8 +69,7 @@ RUN code-server --install-extension ms-python.python \
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"]
 
 
1
  ### Dockerfile
2
  FROM codercom/code-server:latest
3
 
4
+ # Root olarak çalıştırmak için
5
+ USER root
6
+
7
+ # Workspace ve yazılabilir dizin
8
  WORKDIR /workspace
9
  ENV HOME=/workspace
10
  ENV CONFIG_DIR=/workspace/.config
11
  ENV DISABLE_TELEMETRY=true
12
  EXPOSE 7860
13
 
14
+ # ---------------------------
15
+ # Sistem paketleri ve diller (HF uyumlu)
16
+ # ---------------------------
17
+ RUN mkdir -p /var/lib/apt/lists/partial && \
18
+ apt-get update && apt-get install -y \
19
  python2 python2-dev python3 python3-dev python3-pip python-is-python3 \
20
  curl wget git unzip build-essential locales \
21
  nodejs npm \
 
33
  && python2 get-pip.py \
34
  && rm get-pip.py
35
 
36
+ # ---------------------------
37
  # Node.js multi version (nvm)
38
+ # ---------------------------
39
  ENV NVM_DIR=/workspace/.nvm
40
  RUN mkdir -p $NVM_DIR \
41
  && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.6/install.sh | bash
 
46
  # Node global packages
47
  RUN npm install -g yarn typescript eslint prettier
48
 
49
+ # ---------------------------
50
  # Go workspace
51
+ # ---------------------------
52
  ENV GOPATH=/workspace/go
53
  ENV PATH=$GOPATH/bin:$PATH
54
 
55
+ # ---------------------------
56
  # Oh My Zsh kurulum
57
+ # ---------------------------
58
  RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
59
  ENV SHELL=/usr/bin/zsh
60
  ENV ZSH=$HOME/.oh-my-zsh
61
 
62
+ # ---------------------------
63
  # VS Code uzantıları
64
+ # ---------------------------
65
  RUN code-server --install-extension ms-python.python \
66
  && code-server --install-extension golang.go \
67
  && code-server --install-extension dbaeumer.vscode-eslint \
 
69
  && code-server --install-extension eamodio.gitlens \
70
  && code-server --install-extension ms-vscode.go
71
 
72
+ # ---------------------------
 
 
73
  # Public erişim
74
+ # ---------------------------
75
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]