FROM ubuntu:focal-20210609
ENV TZ=America/Vancouver
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
dpkg --add-architecture i386 &&\
apt-get update && \
apt-get install -y --no-install-recommends flex-old bison build-essential csh libxaw7-dev sudo curl vim git openssh-server make ca-certificates unzip wget libc6:i386 libncurses5:i386 libstdc++6:i386 &&\
adduser blah --gecos GECOS --disabled-password &&\
usermod -aG sudo blah &&\
echo "blah ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers &&\
rm -rf /var/lib/{apt,dpkg,cache,log}/
USER blah
ENV SSH_PUBLIC_KEY ""
EXPOSE 22
CMD sudo mkdir -p /home/blah/.ssh &&\
sudo chown -R blah /home/blah &&\
sudo chmod -R 755 /home/blah &&\
echo ${SSH_PUBLIC_KEY} > /home/blah/.ssh/authorized_keys && \
sudo chmod 600 /home/blah/.ssh/authorized_keys && \
sudo service ssh start && tail -f /dev/null;
Content type
Image
Digest
Size
177.5 MB
Last updated
about 5 years ago
docker pull 1733116199/compiler:3