2022-06-01 19:11:44 +03:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
2022-06-26 19:30:46 +03:00
|
|
|
ARG DOCKER_UID=1000
|
2022-06-26 14:34:54 +03:00
|
|
|
ARG DOCKER_DEV_SSH_PASSWORD
|
2022-06-01 19:11:44 +03:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV TZ=UTC
|
|
|
|
|
2022-06-26 14:34:54 +03:00
|
|
|
# Set up some core packages
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y sudo git curl
|
|
|
|
|
2022-06-01 19:11:44 +03:00
|
|
|
# Set up SSH access
|
2022-06-26 14:34:54 +03:00
|
|
|
RUN apt-get install -y openssh-server iptables
|
2022-06-01 19:11:44 +03:00
|
|
|
RUN mkdir /var/run/sshd
|
2022-06-26 19:30:46 +03:00
|
|
|
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u $DOCKER_UID ubuntu
|
2022-06-26 14:34:54 +03:00
|
|
|
RUN echo "ubuntu:${DOCKER_DEV_SSH_PASSWORD}" | chpasswd
|
|
|
|
|
|
|
|
# Set up proper permissions for volumes
|
|
|
|
RUN mkdir -p /home/ubuntu/zeppelin /home/ubuntu/.vscode-remote /home/ubuntu/.vscode-server /home/ubuntu/.cache/JetBrains
|
|
|
|
RUN chown -R ubuntu /home/ubuntu
|
2022-06-01 19:11:44 +03:00
|
|
|
|
2022-06-26 14:34:54 +03:00
|
|
|
# Install Node.js 16 and packages needed to build native packages
|
2022-06-01 19:11:44 +03:00
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
2022-06-26 14:34:54 +03:00
|
|
|
RUN apt-get install -y nodejs gcc g++ make python3
|
2022-06-01 19:11:44 +03:00
|
|
|
|
|
|
|
CMD /usr/sbin/sshd -D -e
|