1tbfree commited on
Commit
ed7277b
·
verified ·
1 Parent(s): ffad755

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image that supports systemd, for example, Ubuntu
2
+ FROM ubuntu:latest
3
+
4
+ # Install necessary packages
5
+ RUN apt-get update && \
6
+ apt-get install -y shellinabox && \
7
+ apt-get install -y systemd && \
8
+ apt-get clean && \
9
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10
+ RUN echo 'root:root' | chpasswd
11
+ # Only change the second root
12
+ # Expose the web-based terminal port
13
+ EXPOSE 4200
14
+
15
+ # Start shellinabox
16
+ CMD ["/usr/bin/shellinaboxd", "-t", "-s", "/:LOGIN"]