File size: 519 Bytes
78e1aeb
c607734
 
 
 
 
 
1cf014e
 
a9cf1f3
 
c607734
 
 
 
 
 
 
 
 
78e1aeb
c607734
 
 
27bc068
 
56f0a82
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 ahhhliu/cursor2api:latest

COPY --from=nginx:alpine /etc/nginx /etc/nginx
COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx

COPY nginx.conf /etc/nginx/nginx.conf

USER root

RUN apk add --no-cache pcre2

RUN mkdir -p /var/log/nginx && \
    mkdir -p /var/cache/nginx && \
    mkdir -p /var/run && \
    chmod -R 777 /var/log/nginx && \
    chmod -R 777 /var/cache/nginx && \
    chmod -R 777 /var/run

WORKDIR /app

EXPOSE 3001

RUN chmod 777 -R /app

USER runuser

CMD ["sh", "-c", "nginx && node run.js"]