webdev/build_tools/Dockerfile

21 lines
529 B
Text
Raw Normal View History

2024-08-12 17:42:42 +02:00
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"]