chb2025 commited on
Commit
cdbbaf4
·
verified ·
1 Parent(s): 500ce16

Upload Dockerfile (1)

Browse files
Files changed (1) hide show
  1. Dockerfile (1) +27 -0
Dockerfile (1) ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ahhhliu/cursor2api:latest
2
+
3
+ COPY --from=nginx:alpine /etc/nginx /etc/nginx
4
+ COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
5
+
6
+ COPY nginx.conf /etc/nginx/nginx.conf
7
+
8
+ USER root
9
+
10
+ RUN apk add --no-cache pcre2
11
+
12
+ RUN mkdir -p /var/log/nginx && \
13
+ mkdir -p /var/cache/nginx && \
14
+ mkdir -p /var/run && \
15
+ chmod -R 777 /var/log/nginx && \
16
+ chmod -R 777 /var/cache/nginx && \
17
+ chmod -R 777 /var/run
18
+
19
+ WORKDIR /app
20
+
21
+ EXPOSE 3001
22
+
23
+ RUN chmod 777 -R /app
24
+
25
+ USER runuser
26
+
27
+ CMD ["sh", "-c", "nginx && node run.js"]