-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
36 lines (28 loc) · 1.1 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 alpine: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=siab \
SIAB_USERID=1001 \
SIAB_GROUP=siab \
SIAB_GROUPID=1001 \
SIAB_PASSWORD=putsafepasswordhere \
SIAB_SHELL=/bin/bash \
SIAB_HOME=/home/siab \
SIAB_SUDO=false \
SIAB_SSL=true \
SIAB_SERVICE=/:LOGIN \
SIAB_PKGS=none \
SIAB_SCRIPT=none
ADD files/user-css.tar.gz /
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
chmod 755 /etc && \
apk update && \
apk upgrade && \
apk add --update shadow util-linux pciutils coreutils binutils findutils grep bash bash-completion openssl curl openssh-client sudo shellinabox && rm -rf /var/cache/apk/* && \
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
EXPOSE 4200
VOLUME /home
ADD files/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["shellinabox"]