FROM node:trixie WORKDIR /app COPY * /app/ ENV PORT=7860 SHELL ["/bin/bash", "-c"] RUN echo -e "\nTypes: deb\nURIs: http://deb.debian.org/debian\nSuites: trixie trixie-updates trixie-backports\nComponents: main contrib non-free non-free-firmware\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg" >> /etc/apt/sources.list.d/debian.sources &&\ apt-get update &&\ apt-get install -y git unzip curl wget gzip procps coreutils bash upx-ucl gnupg2 ca-certificates lsb-release debian-archive-keyring &&\ curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null &&\ echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/debian `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list &&\ echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | tee /etc/apt/preferences.d/99nginx &&\ apt-get update &&\ apt-get install -y nginx &&\ npm install -g pm2 &&\ npm install -g bash-obfuscate &&\ chmod -R 777 /app &&\ chmod -R 777 /var &&\ chmod -R 777 /run ENTRYPOINT ["bash", "-c", "echo -e \"$RUN_BASE\" > /app/run.sh && chmod +x /app/run.sh && bash /app/run.sh"]