jmanhype
commited on
Commit
Β·
667eb29
1
Parent(s):
b7d1e10
fix: install both wget and curl, add conditional VSCode server installation
Browse files- scripts/gradio/Dockerfile +12 -5
scripts/gradio/Dockerfile
CHANGED
@@ -5,18 +5,25 @@ LABEL MAINTAINER="anchorxia, zhanchao"
|
|
5 |
LABEL Email="[email protected], [email protected]"
|
6 |
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
|
7 |
|
8 |
-
#
|
9 |
USER root
|
10 |
-
RUN
|
|
|
|
|
|
|
11 |
touch /etc/gitconfig && \
|
12 |
chmod 666 /etc/gitconfig && \
|
13 |
git config --system user.email "[email protected]" && \
|
14 |
-
git config --system user.name "jmanhype"
|
15 |
-
|
|
|
|
|
|
|
16 |
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
17 |
rm /tmp/openvscode-server.tar.gz && \
|
18 |
mv /opt/openvscode-server-v1.86.2-linux-x64 /opt/openvscode-server && \
|
19 |
-
chown -R 1000:1000 /opt/openvscode-server
|
|
|
20 |
|
21 |
# Create necessary directories with proper permissions
|
22 |
RUN mkdir -p /home/user/.config/matplotlib && \
|
|
|
5 |
LABEL Email="[email protected], [email protected]"
|
6 |
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
|
7 |
|
8 |
+
# Install required packages and set up git config
|
9 |
USER root
|
10 |
+
RUN apt-get update && \
|
11 |
+
apt-get install -y wget curl && \
|
12 |
+
rm -rf /var/lib/apt/lists/* && \
|
13 |
+
rm -rf /etc/gitconfig && \
|
14 |
touch /etc/gitconfig && \
|
15 |
chmod 666 /etc/gitconfig && \
|
16 |
git config --system user.email "[email protected]" && \
|
17 |
+
git config --system user.name "jmanhype"
|
18 |
+
|
19 |
+
# Download and install VSCode server
|
20 |
+
RUN if [ ! -d "/opt/openvscode-server" ]; then \
|
21 |
+
wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.86.2/openvscode-server-v1.86.2-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && \
|
22 |
tar -xzf /tmp/openvscode-server.tar.gz -C /opt && \
|
23 |
rm /tmp/openvscode-server.tar.gz && \
|
24 |
mv /opt/openvscode-server-v1.86.2-linux-x64 /opt/openvscode-server && \
|
25 |
+
chown -R 1000:1000 /opt/openvscode-server; \
|
26 |
+
fi
|
27 |
|
28 |
# Create necessary directories with proper permissions
|
29 |
RUN mkdir -p /home/user/.config/matplotlib && \
|