File size: 702 Bytes
0c04cfb
 
 
 
 
 
 
 
 
 
 
 
398c484
 
 
 
 
 
 
875474c
0c04cfb
 
875474c
9572f79
 
 
 
 
875474c
0c04cfb
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
28
29
30
FROM node

run apt-get update && apt-get install git -y && apt-get install nginx -y
run git clone https://github.com/Rfym21/Qwen2API.git /app

WORKDIR /app

COPY . .

RUN chmod 777 /app

RUN npm i

run mkdir -p /var/lib/nginx && chmod 777 /var/lib/nginx
run mkdir -p /var/log &&  chmod 777 /var/log
RUN  mkdir -p /etc/nginx && mkdir -p /var/run &&  chmod 777 -R /var && chmod 777 -R /etc/nginx && chmod 777 -R /var/run
run mkdir -p /var/log/nginx
run touch /var/log/nginx/access.log && chmod 777 /var/log/nginx/access.log
run chmod 777 /var/log/nginx

RUN apt update && \
    apt install -y nginx

WORKDIR /app/public
run npm i && npm run build

WORKDIR /app


cmd nginx -c /app/nginx.conf && npm start