FROM debian:stretch
RUN apt update &&
apt -y -q upgrade &&
apt -y -q install cron ssh python3 git wget curl nload htop sudo rsyslog apt-utils ntp gnupg1 &&
mkdir /var/run/sshd &&
# Interpretador FISH
wget -O - https://download.opensuse.org/repositories/shells:fish:release:3/Debian_9.0/Release.key | apt-key add - &&
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_9.0/ /' > /etc/apt/sources.list.d/shells:fish:release:3.list &&
apt update &&
apt -y -q install fish &&
# Criando usuarios
addgroup --gid 1100 rfabelhas &&
useradd -u 1100 -g rfabelhas -G sudo -c "RFAbelhas,,," -m -s /usr/bin/fish rfabelhas &&
echo ClientAliveInterval 180 >> /etc/ssh/sshd_config &&
echo '## allow password less for rfabelhas user' >> /etc/sudoers &&
echo 'rfabelhas ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers &&
# Ajuste no horario e idioma
echo "America/Sao_Paulo" > /etc/timezone &&
rm -r /etc/localtime &&
ln -snf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime &&
dpkg-reconfigure -f noninteractive tzdata &&
# Fazendo uma limpeza
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/* /root/.bash_history &&
rm -rf /etc/ssh/key
ENTRYPOINT /usr/sbin/cron ; /usr/sbin/sshd -D
Content type
Image
Digest
Size
163.1 MB
Last updated
about 7 years ago
docker pull jpmsb/rfabelhas:2019.6.19