Trytrytr6t / Dockerfile
proti0070's picture
Create Dockerfile
ecb41af verified
Raw
History Blame Contribute Delete
679 Bytes
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