HUB
Sign inSign up

wealthyking/devcontainer

By wealthyking

•Updated over 4 years ago

Image
0

205

wealthyking/devcontainer repository overview

FROM ubuntu:latest

ARG USERNAME=root
ARG USERPASS=ashsec
ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt -y --no-install-recommends install openssh-server whois nano git curl ca-certificates
RUN usermod --password $(echo "$USERPASS" | mkpasswd -s) $USERNAME

RUN apt purge -y whois && apt -y autoremove && apt -y autoclean && apt -y clean

USER $USERNAME
RUN mkdir -p /home/$USERNAME/.ssh && touch /home/$USERNAME/.ssh/authorized_keys
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

ENTRYPOINT service ssh restart && tail -f /dev/null
Tag summary
Recent tags
Content type
Image
Digest
sha256:820dca643…
Size
78.6 MB
Last updated
over 4 years ago
docker pull wealthyking/devcontainer:latest