FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive # Install dependencies RUN apt update && apt install -y curl gnupg bash coreutils procps cpulimit net-tools git wget sudo apt-utils iputils-ping ttyd # Install Node.js RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - RUN apt install -y nodejs # Clone repo (change this) RUN git clone https://huggingface.co/spaces/sayarukshan/git_tool /app # Set working directory as repo WORKDIR /app COPY server.js . COPY index.html . COPY package.json . # Install node modules RUN npm install express multer axios http-proxy-middleware # Expose port EXPOSE 7860 # Start ttyd in background, then start Node CMD ttyd -p 7681 bash & node server.js