nyanya
commited on
Commit
•
28007b8
1
Parent(s):
5629e8a
fix
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -73,18 +73,18 @@ RUN curl -s "https://api.github.com/repos/coder/code-server/releases/latest" \
|
|
73 |
apt-get clean && \
|
74 |
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
75 |
|
76 |
-
RUN mkdir /app/.npm-global \
|
77 |
-
&& npm config set prefix '/app/.npm-global' \
|
78 |
-
&& echo 'export PATH=/app/.npm-global/bin:$PATH' >> ~/.profile \
|
79 |
-
&& echo 'export PATH=/app/.npm-global/bin:$PATH' >> ~/.bashrc \
|
80 |
-
&& chown -R user:user /app/.npm-global
|
81 |
-
|
82 |
# Install Node.js and configurable-http-proxy
|
83 |
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
|
84 |
&& apt-get install -y nodejs \
|
85 |
-
&& npm install -g configurable-http-proxy \
|
86 |
&& rm -rf /var/lib/apt/lists/* \
|
87 |
&& rm -rf /var/tmp/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
# Install Golang
|
90 |
ARG GOLANG_VERSION="1.20"
|
|
|
73 |
apt-get clean && \
|
74 |
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
# Install Node.js and configurable-http-proxy
|
77 |
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
|
78 |
&& apt-get install -y nodejs \
|
|
|
79 |
&& rm -rf /var/lib/apt/lists/* \
|
80 |
&& rm -rf /var/tmp/*
|
81 |
+
|
82 |
+
RUN mkdir /app/.npm-global \
|
83 |
+
&& npm config set prefix '/app/.npm-global' \
|
84 |
+
&& echo 'export PATH=/app/.npm-global/bin:$PATH' >> ~/.profile \
|
85 |
+
&& echo 'export PATH=/app/.npm-global/bin:$PATH' >> ~/.bashrc \
|
86 |
+
&& chown -R user:user /app/.npm-global \
|
87 |
+
&& npm install -g configurable-http-proxy \
|
88 |
|
89 |
# Install Golang
|
90 |
ARG GOLANG_VERSION="1.20"
|