2024-03-17 18:49:31 +02:00
|
|
|
FROM ubuntu:22.04
|
2022-06-01 19:11:44 +03:00
|
|
|
|
2024-03-17 18:49:31 +02:00
|
|
|
ARG DEVELOPMENT_UID
|
|
|
|
ARG DEVELOPMENT_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
|
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-26 14:34:54 +03:00
|
|
|
|
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
|
2024-03-17 18:49:31 +02:00
|
|
|
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u $DEVELOPMENT_UID ubuntu
|
|
|
|
RUN echo "ubuntu:${DEVELOPMENT_SSH_PASSWORD}" | chpasswd
|
2022-06-26 14:34:54 +03:00
|
|
|
|
2024-03-17 18:49:31 +02:00
|
|
|
# Install Node.js 20 and packages needed to build native packages
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.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
|
|
|
|
2023-06-25 12:28:18 +03:00
|
|
|
CMD ["/usr/sbin/sshd", "-D", "-e"]
|