-
Notifications
You must be signed in to change notification settings - Fork 1
/
base.Dockerfile
20 lines (20 loc) · 964 Bytes
/
base.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:bionic AS main
RUN /bin/bash -c '\
export DEBIAN_FRONTEND=noninteractive && \
export DEBIAN_PRIORITY=critical && \
mkdir -p /var/run/sshd /var/log/sshd /root/.ssh /etc/ssh/sshd_config.d && \
rm -f /etc/update-motd.d/60-unminimize && \
apt update && \
apt install -y -o "Dpkg::Options::=--force-confold" --no-install-recommends curl wget ca-certificates nano openssh-server openssh-client git libpam-systemd- && \
apt autoremove -y --purge && \
apt clean && \
rm -rf /var/lib/apt /root/.launchpadlib && \
wget https://raw.githubusercontent.com/tj/n/master/bin/n -O /tmp/n && \
bash /tmp/n 16 && \
rm /tmp/n && \
echo "export N_PRESERVE_NPM=1" | tee -a /root/.bashrc && \
/usr/local/bin/npm install npm@9 n --location=global && \
rm -rf /root/.npm && \
mkdir -p /root/.npm && \
echo "done."'
CMD eval `ssh-agent -s` && /usr/bin/ssh-add && /usr/sbin/sshd -D -e -E /var/log/sshd/sshd.log