
* add cloudflared arm64 * typo * print cloudflared version on startup --------- Co-authored-by: gOOvER <116325+gOOvER@users.noreply.github.com> Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com>
49 lines
1.6 KiB
Docker
49 lines
1.6 KiB
Docker
FROM --platform=$TARGETOS/$TARGETARCH node:18-alpine
|
|
|
|
LABEL author="Torsten Widmann" maintainer="info@goover.de"
|
|
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images"
|
|
LABEL org.opencontainers.image.licenses=MIT
|
|
|
|
RUN apk update \
|
|
&& apk upgrade
|
|
|
|
RUN apk add --no-cache \
|
|
autoconf \
|
|
automake \
|
|
build-base \
|
|
ca-certificates\
|
|
curl \
|
|
bind-tools \
|
|
ffmpeg \
|
|
g++ \
|
|
git \
|
|
gpg \
|
|
gnupg \
|
|
iproute2 \
|
|
iputils-ping \
|
|
libtool \
|
|
python3 \
|
|
python3-dev \
|
|
sqlite \
|
|
tzdata \
|
|
zip \
|
|
libc6-compat
|
|
|
|
# updating npm
|
|
RUN npm install npm@latest -g
|
|
|
|
# download cloudflared
|
|
ARG TARGETPLATFORM
|
|
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then ARCHITECTURE=arm64; fi \
|
|
&& curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-${ARCHITECTURE} -o /usr/bin/cloudflared
|
|
RUN chmod +x /usr/bin/cloudflared
|
|
|
|
## Setup user and working directory
|
|
RUN adduser -D -h /home/container container -s /bin/bash container
|
|
USER container
|
|
ENV USER=container HOME=/home/container
|
|
WORKDIR /home/container
|
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
CMD ["/bin/ash", "/entrypoint.sh"]
|