File size: 1,282 Bytes
51b29ce
9a7a261
51b29ce
9a7a261
51b29ce
9a7a261
51b29ce
5120e77
51b29ce
9a7a261
51b29ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a974556
51b29ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"]