21 lines
529 B
Text
21 lines
529 B
Text
|
FROM ubuntu:20.04
|
||
|
|
||
|
RUN apt-get update && apt-get install -y \
|
||
|
curl \
|
||
|
git \
|
||
|
subversion \
|
||
|
openssh-server
|
||
|
|
||
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||
|
ENV NVM_DIR=/root/.nvm
|
||
|
RUN . "$NVM_DIR/nvm.sh" && nvm install 18 && nvm use 18
|
||
|
|
||
|
RUN . "$NVM_DIR/nvm.sh" && npm install -g grunt-cli
|
||
|
|
||
|
RUN mkdir /var/run/sshd
|
||
|
RUN echo 'root:password' | chpasswd
|
||
|
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||
|
|
||
|
EXPOSE 22
|
||
|
|
||
|
CMD ["/usr/sbin/sshd", "-D"]
|