26 lines
No EOL
1.1 KiB
Docker
26 lines
No EOL
1.1 KiB
Docker
FROM --platform=$TARGETOS/$TARGETARCH mongo:7-jammy
|
|
|
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
|
|
|
## install nodejs 20
|
|
RUN apt update && apt install --no-install-recommends -y curl apt-transport-https ca-certificates gnupg \
|
|
&& mkdir -p /usr/share/keyrings \
|
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg \
|
|
&& echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
|
&& apt update && apt install -y nodejs \
|
|
&& npm install -g npm@latest \
|
|
## install bastion reqs
|
|
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 tzdata tini \
|
|
## add container user
|
|
&& useradd -d /home/container -m container -s /bin/bash
|
|
|
|
USER container
|
|
ENV USER=container HOME=/home/container
|
|
WORKDIR /home/container
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
|
CMD ["/entrypoint.sh"] |