Spaces:
Paused
Paused
Create Dockerfile
Browse files- 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"]
|