zappyzep/docker/development/devenv/Dockerfile

19 lines
456 B
Text
Raw Normal View History

2022-06-01 19:11:44 +03:00
FROM ubuntu:20.04
ARG DOCKER_UID
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
# Set up SSH access
RUN apt-get update && apt-get install -y openssh-server sudo git
RUN mkdir /var/run/sshd
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u "${DOCKER_UID}" ubuntu
RUN echo 'ubuntu:password' | chpasswd
# Install Node.js 16
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
CMD /usr/sbin/sshd -D -e