Spaces:
Paused
Paused
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
|
@@ -11,6 +11,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
ca-certificates \
|
| 12 |
tar \
|
| 13 |
python3 \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
&& rm -rf /var/lib/apt/lists/* \
|
| 15 |
&& curl -sSL https://s3.amazonaws.com/sshx/sshx-x86_64-unknown-linux-musl.tar.gz -o /tmp/sshx.tar.gz \
|
| 16 |
&& tar -xzf /tmp/sshx.tar.gz -C /tmp \
|
|
@@ -18,8 +27,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 18 |
&& chmod +x /usr/local/bin/sshx \
|
| 19 |
&& rm -f /tmp/sshx.tar.gz
|
| 20 |
|
| 21 |
-
# Create a non-root user
|
| 22 |
-
RUN useradd -m -u 1000 user
|
|
|
|
| 23 |
|
| 24 |
# Switch to user
|
| 25 |
USER user
|
|
|
|
| 11 |
ca-certificates \
|
| 12 |
tar \
|
| 13 |
python3 \
|
| 14 |
+
sudo \
|
| 15 |
+
nano \
|
| 16 |
+
vim \
|
| 17 |
+
git \
|
| 18 |
+
wget \
|
| 19 |
+
htop \
|
| 20 |
+
net-tools \
|
| 21 |
+
iputils-ping \
|
| 22 |
+
build-essential \
|
| 23 |
&& rm -rf /var/lib/apt/lists/* \
|
| 24 |
&& curl -sSL https://s3.amazonaws.com/sshx/sshx-x86_64-unknown-linux-musl.tar.gz -o /tmp/sshx.tar.gz \
|
| 25 |
&& tar -xzf /tmp/sshx.tar.gz -C /tmp \
|
|
|
|
| 27 |
&& chmod +x /usr/local/bin/sshx \
|
| 28 |
&& rm -f /tmp/sshx.tar.gz
|
| 29 |
|
| 30 |
+
# Create a non-root user and add to sudoers
|
| 31 |
+
RUN useradd -m -u 1000 user \
|
| 32 |
+
&& echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 33 |
|
| 34 |
# Switch to user
|
| 35 |
USER user
|