-
Notifications
You must be signed in to change notification settings - Fork 61
/
Dockerfile
36 lines (30 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:latest
ENV SIAB_USERCSS="Normal:+/etc/shellinabox/options-enabled/00+Black-on-White.css,Reverse:-/etc/shellinabox/options-enabled/00_White-On-Black.css;Colors:+/etc/shellinabox/options-enabled/01+Color-Terminal.css,Monochrome:-/etc/shellinabox/options-enabled/01_Monochrome.css" \
SIAB_PORT=4200 \
SIAB_ADDUSER=true \
SIAB_USER=guest \
SIAB_USERID=1000 \
SIAB_GROUP=guest \
SIAB_GROUPID=1000 \
SIAB_PASSWORD=putsafepasswordhere \
SIAB_SHELL=/bin/bash \
SIAB_HOME=/home/guest \
SIAB_SUDO=false \
SIAB_SSL=true \
SIAB_SERVICE=/:LOGIN \
SIAB_PKGS=none \
SIAB_SCRIPT=none
RUN apt-get update && apt-get install -y openssl curl openssh-client sudo shellinabox && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
ln -sf '/etc/shellinabox/options-enabled/00+Black on White.css' \
/etc/shellinabox/options-enabled/00+Black-on-White.css && \
ln -sf '/etc/shellinabox/options-enabled/00_White On Black.css' \
/etc/shellinabox/options-enabled/00_White-On-Black.css && \
ln -sf '/etc/shellinabox/options-enabled/01+Color Terminal.css' \
/etc/shellinabox/options-enabled/01+Color-Terminal.css
EXPOSE 4200
VOLUME /etc/shellinabox /var/log/supervisor /home
ADD assets/entrypoint.sh /usr/local/sbin/
ENTRYPOINT ["entrypoint.sh"]
CMD ["shellinabox"]