wkplhc commited on
Commit
7765685
·
verified ·
1 Parent(s): bf869e9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile CHANGED
@@ -10,8 +10,21 @@ RUN apt-get update && apt-get install -y \
10
  git \
11
  bzip2 \
12
  libx11-6 \
 
 
 
 
 
 
 
 
13
  && rm -rf /var/lib/apt/lists/*
14
 
 
 
 
 
 
15
  ARG CODE_RELEASE
16
  RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/latest | \
17
  grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}' | \
@@ -29,6 +42,10 @@ ENV HOME=/home/user
29
  RUN mkdir -p $HOME/.config $HOME/app
30
  WORKDIR $HOME/app
31
 
 
 
 
 
32
  EXPOSE 7860
33
 
34
  CMD ["/app/openvscode-server/bin/openvscode-server", "--host", "0.0.0.0", "--port", "7860", "--without-connection-token"]
 
10
  git \
11
  bzip2 \
12
  libx11-6 \
13
+ python3 \
14
+ python3-pip \
15
+ build-essential \
16
+ vim \
17
+ wget \
18
+ unzip \
19
+ jq \
20
+ tree \
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
+ # Install Node.js and npm
24
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
25
+ apt-get install -y nodejs && \
26
+ npm install -g npm@latest yarn
27
+
28
  ARG CODE_RELEASE
29
  RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/latest | \
30
  grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}' | \
 
42
  RUN mkdir -p $HOME/.config $HOME/app
43
  WORKDIR $HOME/app
44
 
45
+ # Install VS Code extensions as user
46
+ RUN /app/openvscode-server/bin/openvscode-server --install-extension ms-python.python \
47
+ && /app/openvscode-server/bin/openvscode-server --install-extension ms-vscode.vscode-typescript-tslint-plugin
48
+
49
  EXPOSE 7860
50
 
51
  CMD ["/app/openvscode-server/bin/openvscode-server", "--host", "0.0.0.0", "--port", "7860", "--without-connection-token"]