File size: 549 Bytes
fcf06cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]