Spaces:
Paused
Paused
File size: 679 Bytes
ecb41af | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# π§ Update system
RUN apt-get update && apt-get upgrade -y
# π¦ Install base tools
RUN apt-get install -y \
curl \
wget \
git \
sudo \
nano \
ca-certificates \
python3 \
python3-pip \
ttyd \
docker.io \
&& rm -rf /var/lib/apt/lists/*
# π’ Install Node.js (LTS) + npm
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
# π€ Create user
RUN useradd -m user && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER user
WORKDIR /home/user
# π Expose HF port
EXPOSE 7860
# π Start web terminal
CMD ttyd -p 7860 bash |