Dockerfile(Linuxコマンドインストール)

RUN amazon-linux-extras install -y
RUN yum install \
    systemd \
    sudo \
    tar \
    unzip \
    vim \
    wget \
    nmap \
    jq \
    procps-ng \
    net-tools \
    openssh-server \
    openssh-client \
    -y

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
    && unzip awscliv2.zip
    && sudo ./aws/install

RUN yum update -y

RUN echo "export PS1=\"[\n@\h \W]# \"" >> ~/.bashrc
RUN echo "alias ll="ls -l --color"' >> ~/.bashrc
RUN echo "export PS1=\"[\n@\h \W]# \"" >> ~/.bash_profile
RUN echo "alias ll="ls -l --color"' >> ~/.bash_profile
CMD["/sbin/init"]

 

 

 

 

記事タイトル検索