Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -3,25 +3,25 @@ FROM ubuntu:22.04
|
|
| 3 |
USER root
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# Basic tools
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
curl wget sudo ttyd qemu-system-x86 qemu-kvm \
|
| 9 |
python3 python3-pip git git-lfs openssh-server \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
# Playit
|
| 13 |
-
RUN curl -
|
| 14 |
chmod +x /usr/local/bin/playit
|
| 15 |
|
| 16 |
# Hugging Face CLI
|
| 17 |
RUN pip3 install huggingface_hub
|
| 18 |
|
| 19 |
-
# User
|
| 20 |
RUN useradd -m -u 1000 user && \
|
| 21 |
echo "user:password" | chpasswd && \
|
| 22 |
echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 23 |
|
| 24 |
-
# SSH Config
|
| 25 |
RUN mkdir /var/run/sshd && \
|
| 26 |
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
| 27 |
|
|
|
|
| 3 |
USER root
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# Basic tools
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
curl wget sudo ttyd qemu-system-x86 qemu-kvm \
|
| 9 |
python3 python3-pip git git-lfs openssh-server \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Fix: Playit ko Github se download kar rahe hain (Ye link kabhi fail nahi hoga)
|
| 13 |
+
RUN curl -L https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64 -o /usr/local/bin/playit && \
|
| 14 |
chmod +x /usr/local/bin/playit
|
| 15 |
|
| 16 |
# Hugging Face CLI
|
| 17 |
RUN pip3 install huggingface_hub
|
| 18 |
|
| 19 |
+
# User setup
|
| 20 |
RUN useradd -m -u 1000 user && \
|
| 21 |
echo "user:password" | chpasswd && \
|
| 22 |
echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 23 |
|
| 24 |
+
# SSH Config
|
| 25 |
RUN mkdir /var/run/sshd && \
|
| 26 |
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
| 27 |
|