nyanya
commited on
Commit
•
830a9c7
1
Parent(s):
adc5d49
change nvm,shorten
Browse files- Dockerfile +3 -9
- npm_packages.txt +1 -0
- packages.txt +1 -0
Dockerfile
CHANGED
@@ -52,10 +52,9 @@ RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/la
|
|
52 |
mkdir -p /app/openvscode-server && \
|
53 |
tar -xzf /tmp/openvscode-server.tar.gz --strip-components=1 -C /app/openvscode-server
|
54 |
|
55 |
-
# Install
|
56 |
-
RUN curl -
|
57 |
-
|
58 |
-
|
59 |
# Install Golang
|
60 |
ARG GOLANG_VERSION="1.20"
|
61 |
RUN curl -LO "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
|
@@ -79,11 +78,6 @@ RUN mkdir $HOME/.cache $HOME/.config \
|
|
79 |
&& chown -R user:user $HOME \
|
80 |
&& chmod 700 $HOME/.cache $HOME/.config
|
81 |
|
82 |
-
RUN mkdir /app/.npm-global \
|
83 |
-
&& npm config set prefix '/app/.npm-global' \
|
84 |
-
&& echo 'export PATH=/app/.npm-global/bin:$PATH' | tee -a ~/.profile ~/.bashrc \
|
85 |
-
&& npm install -g configurable-http-proxy
|
86 |
-
|
87 |
# Set up the Conda environment
|
88 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
89 |
PATH=$HOME/miniconda/bin:$PATH
|
|
|
52 |
mkdir -p /app/openvscode-server && \
|
53 |
tar -xzf /tmp/openvscode-server.tar.gz --strip-components=1 -C /app/openvscode-server
|
54 |
|
55 |
+
# Install NVM and set 16 as default
|
56 |
+
RUN mkdir /app/.nvm ; export NVM_DIR="/app/.nvm" && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && source "$NVM_DIR/nvm.sh" && nvm install 16 && nvm alias default 16
|
57 |
+
|
|
|
58 |
# Install Golang
|
59 |
ARG GOLANG_VERSION="1.20"
|
60 |
RUN curl -LO "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
|
|
|
78 |
&& chown -R user:user $HOME \
|
79 |
&& chmod 700 $HOME/.cache $HOME/.config
|
80 |
|
|
|
|
|
|
|
|
|
|
|
81 |
# Set up the Conda environment
|
82 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
83 |
PATH=$HOME/miniconda/bin:$PATH
|
npm_packages.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
cloudflared
|
2 |
localtunnel
|
3 |
serve
|
|
|
|
1 |
cloudflared
|
2 |
localtunnel
|
3 |
serve
|
4 |
+
configurable-http-proxy
|
packages.txt
CHANGED
@@ -4,4 +4,5 @@ neovim
|
|
4 |
autossh
|
5 |
tmux
|
6 |
ripgrep
|
|
|
7 |
lsof
|
|
|
4 |
autossh
|
5 |
tmux
|
6 |
ripgrep
|
7 |
+
ping
|
8 |
lsof
|