Spaces:
Paused
Paused
| FROM debian:11-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install -y python3 python3-pip openssh-server curl bash && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Optional: Install sshx if still needed | |
| RUN curl -sSf https://sshx.io/get | sh || true | |
| # Setup SSH for sshx compatibility | |
| RUN mkdir -p /var/run/sshd | |
| RUN echo 'root:password' | chpasswd 2>/dev/null || true | |
| COPY entrypoint.sh /app/entrypoint.sh | |
| RUN chmod +x /app/entrypoint.sh | |
| EXPOSE 7860 22 | |
| CMD ["/app/entrypoint.sh"] |