1tbfree/ShellInABox
0
1# Use the official Ubuntu image as the base2FROM ubuntu:20.043 4# Set environment variables5ENV DEBIAN_FRONTEND=noninteractive6 7# Update the package list and install necessary packages8RUN apt-get update && \9 apt-get install -y \10 shellinabox \11 sudo \12 && apt-get clean \13 && rm -rf /var/lib/apt/lists/*14 15# Create a new user and set a password using chpasswd16RUN useradd -m myuser && \17 echo "myuser:password" | chpasswd && \18 adduser myuser sudo19 20# Expose the Shell In A Box port21EXPOSE 786022 23# Configure Shell In A Box to listen on port 706024RUN sed -i 's/--port=4200/--port=7860/g' /etc/default/shellinabox25 26# Start Shell In A Box27CMD ["shellinaboxd", "-t", "--no-beep", "--disable-ssl"]