8000 feat: add node pterodactyl images by Nathanieell · Pull Request #17 · frutbits/images · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add node pterodactyl images #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions node/pterodactyl/16/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# TAGS: gallium, lts
# VARIANT: alpine
# PLATFORMS: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6, linux/ppc64le, linux/s390x
FROM docker.io/library/node:16.17.1-alpine

LABEL author="Frutbits Indonesia" maintainer="support@frutbits.org"

ARG BUILDPLATFORM

WORKDIR /app

RUN apk add --no-cache \
tini \
tzdata \
ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ../../entrypoint.sh /entrypoint.sh
CMD ["/bin/ash", "/entrypoint.sh"]
35 changes: 35 additions & 0 deletions node/pterodactyl/16/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# TAGS: gallium, lts
# VARIANT:
# PLATFORMS: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/ppc64le, linux/s390x
FROM docker.io/library/node:16.17.1-bullseye-slim

LABEL author="Frutbits Indonesia" maintainer="support@frutbits.org"

ARG BUILDPLATFORM

WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
iputils-ping \
procps \
tini \
tzdata \
curl \
ffmpeg \
git \
openssl \
sqlite \
tar \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/* \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ../../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
23 changes: 23 additions & 0 deletions node/pterodactyl/18/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# TAGS: current, latest
# VARIANT: alpine
# PLATFORMS: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6, linux/ppc64le, linux/s390x
FROM docker.io/library/node:18.10.0-alpine

LABEL author="Frutbits Indonesia" maintainer="support@frutbits.org"

ARG BUILDPLATFORM

WORKDIR /app

RUN apk add --no-cache \
tini \
tzdata \
ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ../../entrypoint.sh /entrypoint.sh
CMD ["/bin/ash", "/entrypoint.sh"]
35 changes: 35 additions & 0 deletions node/pterodactyl/18/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# TAGS: current, latest
# VARIANT:
# PLATFORMS: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/ppc64le, linux/s390x
FROM docker.io/library/node:18.10.0-slim

LABEL author="Frutbits Indonesia" maintainer="support@frutbits.org"

ARG BUILDPLATFORM

WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
iputils-ping \
procps \
tini \
tzdata \
curl \
ffmpeg \
git \
openssl \
sqlite \
tar \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/* \
&& adduser -D -h /home/container container

USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container

COPY ../../entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
26 changes: 26 additions & 0 deletions node/pterodactyl/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/ash
# Default the TZ environment variable to UTC.
TZ=${TZ:-UTC}
export TZ

# Set environment variable that holds the Internal Docker IP
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP

# Switch to the container's working directory
cd /home/container || exit 1

# Print Node.js version
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mnode -v\n"
node -v

# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
# variable format of "${VARIABLE}" before evaluating the string and automatically
# replacing the values.
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")

# Display the command we're running in the output, and then execute it with the env
# from the container itself.
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
# shellcheck disable=SC2086
exec env ${PARSED}
0