3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00
zeppelin/docker/development/devenv/Dockerfile

30 lines
952 B
Text
Raw Permalink Normal View History

2022-06-01 19:11:44 +03:00
FROM ubuntu:20.04
ARG DOCKER_DEV_UID
ARG DOCKER_DEV_SSH_PASSWORD
2022-06-01 19:11:44 +03:00
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
# Set up some core packages
RUN apt-get update
2023-06-25 12:27:54 +03:00
RUN apt-get install -y sudo curl software-properties-common
RUN add-apt-repository ppa:git-core/ppa && apt-get update && apt-get install -y git
2022-06-01 19:11:44 +03:00
# Set up SSH access
RUN apt-get install -y openssh-server iptables
2022-06-01 19:11:44 +03:00
RUN mkdir /var/run/sshd
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u $DOCKER_DEV_UID ubuntu
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
2023-04-29 20:43:35 +03:00
# Install Node.js 18 and packages needed to build native packages
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs gcc g++ make python3
2022-06-01 19:11:44 +03:00
CMD ["/usr/sbin/sshd", "-D", "-e"]