File size: 465 Bytes
ed7277b df5dac1 ed7277b df5dac1 7a45e87 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Use a base image that supports systemd, for example, Ubuntu
FROM ubuntu:20.04
# Install necessary packages
RUN apt-get update && \
apt-get install -y shellinabox && \
apt-get install -y systemd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN echo 'root:root' | chpasswd
# Only change the second root
# Expose the web-based terminal port
EXPOSE 4200
# Start shellinabox
USER root
RUN /usr/bin/shellinaboxd -t -s /:LOGIN |