Awesome-Developer commited on
Commit
fcf06cf
·
verified ·
1 Parent(s): f7e501d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:11-slim
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ WORKDIR /app
5
+
6
+ RUN apt-get update && \
7
+ apt-get upgrade -y && \
8
+ apt-get install -y python3 python3-pip openssh-server curl bash && \
9
+ rm -rf /var/lib/apt/lists/*
10
+
11
+ # Optional: Install sshx if still needed
12
+ RUN curl -sSf https://sshx.io/get | sh || true
13
+
14
+ # Setup SSH for sshx compatibility
15
+ RUN mkdir -p /var/run/sshd
16
+ RUN echo 'root:password' | chpasswd 2>/dev/null || true
17
+
18
+ COPY entrypoint.sh /app/entrypoint.sh
19
+ RUN chmod +x /app/entrypoint.sh
20
+
21
+ EXPOSE 7860 22
22
+
23
+ CMD ["/app/entrypoint.sh"]