Add build_tools/Dockerfile
This commit is contained in:
parent
81ba1bd7b2
commit
926120023d
1 changed files with 21 additions and 0 deletions
21
build_tools/Dockerfile
Normal file
21
build_tools/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
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"]
|
Loading…
Reference in a new issue