Skip to content

Commit 7854364

Browse files
authored
Merge pull request #500 from surajssd/fix-vscode-installation
vscode: Add browser user-agent while downloading
2 parents 0ae3e97 + 4c542b2 commit 7854364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linux/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ ENV BUNDLE_PATH=~/bundle
191191
ENV PATH=$PATH:$GEM_HOME/bin:$BUNDLE_PATH/gems/bin
192192

193193
# Install vscode
194-
RUN wget -nv -O vscode.tar.gz "https://code.visualstudio.com/sha/download?build=insider&os=cli-alpine-x64" \
194+
RUN wget -nv -O vscode.tar.gz --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0" "https://code.visualstudio.com/sha/download?build=insider&os=cli-alpine-x64" \
195195
&& tar -xvzf vscode.tar.gz \
196196
&& mv ./code-insiders /bin/vscode \
197197
&& rm vscode.tar.gz

linux/tools.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN az aks install-cli \
3232
&& chmod +x /usr/local/bin/kubelogin
3333

3434
# Install vscode
35-
RUN wget -nv -O vscode.tar.gz "https://code.visualstudio.com/sha/download?build=insider&os=cli-alpine-x64" \
35+
RUN wget -nv -O vscode.tar.gz --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0" "https://code.visualstudio.com/sha/download?build=insider&os=cli-alpine-x64" \
3636
&& tar -xvzf vscode.tar.gz \
3737
&& mv ./code-insiders /bin/vscode \
3838
&& rm vscode.tar.gz

0 commit comments

Comments
 (0)