Sinketji commited on
Commit
94a8e41
·
verified ·
1 Parent(s): 937719d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 aur SSH server install
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.gg tool download
13
- RUN curl -SsL https://playit-cloud.s3.amazonaws.com/setup/playit-linux-amd64 > /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 create (User: user, Password: password)
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 fix
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