24 lines
839 B
Docker
24 lines
839 B
Docker
FROM --platform=$TARGETOS/$TARGETARCH mongo:6-focal
|
|
|
|
LABEL author="Michael Parker" maintainer="parker@pterodactyl.io"
|
|
|
|
## install nodejs 18
|
|
RUN apt update && apt install --no-install-recommends -y curl \
|
|
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
|
&& 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"] |