Spaces:
Runtime error
Runtime error
sjs
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -83,9 +83,13 @@ RUN cp code /usr/local/bin
|
|
83 |
RUN chmod +x /usr/local/bin/code
|
84 |
RUN apt-get install wget gpg && \
|
85 |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg && \
|
86 |
-
|
87 |
-
|
88 |
-
rm -f packages.microsoft.gpg
|
|
|
|
|
|
|
|
|
89 |
|
90 |
#######################################
|
91 |
# End root user section
|
|
|
83 |
RUN chmod +x /usr/local/bin/code
|
84 |
RUN apt-get install wget gpg && \
|
85 |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg && \
|
86 |
+
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg && \
|
87 |
+
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' && \
|
88 |
+
rm -f packages.microsoft.gpg && \
|
89 |
+
apt install apt-transport-https && \
|
90 |
+
apt update && \
|
91 |
+
apt install code
|
92 |
+
|
93 |
|
94 |
#######################################
|
95 |
# End root user section
|