Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-blazer committed Aug 25, 2023
1 parent b321d2c commit 40ee65f
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 50 deletions.
9 changes: 3 additions & 6 deletions nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
9 changes: 3 additions & 6 deletions nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/tresthost/images"
LABEL org.opencontainers.image.licenses=MIT

RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata
RUN apk add --update --no-cache ca-certificates curl ffmpeg git openssl sqlite tar tzdata \
&& curl -L https://unpkg.com/@pnpm/self-installer | node \
&& rm -rf /var/cache/apk/*

RUN adduser -D -h /home/container container

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

RUN npm install -g pnpm

USER root
RUN curl -L https://unpkg.com/@pnpm/self-installer | node

USER container

CMD ["node"]
4 changes: 2 additions & 2 deletions nodejs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export INTERNAL_IP
cd /home/container || exit 1

# Print Node.js version
printf "\033[1m\033[33mcontainer@tresthost~ \033[0mnode -v\n"
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
Expand All @@ -44,6 +44,6 @@ 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@tresthost~ \033[0m%s\n" "$PARSED"
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
# shellcheck disable=SC2086
exec env ${PARSED}

0 comments on commit 40ee65f

Please sign in to comment.