aripbae commited on
Commit
e36abe9
·
verified ·
1 Parent(s): 08b1b23

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +41 -0
Dockerfile ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nikolaik/python-nodejs:latest
2
+
3
+ ARG DEBIAN_FRONTEND noninteractive
4
+ RUN apt update && apt upgrade -y
5
+ RUN apt install -y build-essential \
6
+ curl fastfetch ffmpeg imagemagick \
7
+ libcairo2-dev libpango1.0-dev \
8
+ libjpeg-dev libgif-dev librsvg2-dev \
9
+ nginx
10
+
11
+ RUN curl -LO https://github.com/dengsgo/echofs/releases/latest/download/echofs-linux-amd64.tar.gz
12
+ RUN tar -xzvf echofs-linux-amd64.tar.gz
13
+ RUN mv -vf echofs /usr/local/bin/
14
+
15
+ RUN echo 'events {} http { \
16
+ server { \
17
+ listen 7860; \
18
+ location /stats { \
19
+ proxy_pass http://127.0.0.1:3000/stats; \
20
+ } \
21
+ location /eval { \
22
+ proxy_pass http://127.0.0.1:3000/eval; \
23
+ } \
24
+ location / { \
25
+ proxy_pass http://127.0.0.1:7860; \
26
+ } \
27
+ } \
28
+ }' > /etc/nginx/nginx.conf
29
+
30
+ WORKDIR /tmp/.app
31
+ RUN npm i -g tunn3l
32
+ RUN npm i attp-generator express \
33
+ ky morgan playwright playwright-extra \
34
+ pretty-ms qc-generator-whatsapp
35
+ RUN npx playwright install chromium
36
+ RUN npx playwright install-deps
37
+
38
+ RUN chmod -R 777 /tmp && mkdir -p /tmp/qc
39
+ COPY . .
40
+ ENV PORT 3000
41
+ CMD ["sh", "-c", "node . & echofs -r /tmp -p 7860 -H & tunn3l http 7860 --subdomain ripp"]