Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +23 -1
Dockerfile
CHANGED
@@ -1 +1,23 @@
|
|
1 |
-
FROM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM huhhz/cursor2api:latest
|
2 |
+
|
3 |
+
RUN apk add --no-cache pcre2
|
4 |
+
|
5 |
+
COPY --from=nginx:alpine /etc/nginx /etc/nginx
|
6 |
+
COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
|
7 |
+
|
8 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
9 |
+
|
10 |
+
RUN mkdir -p /var/log/nginx && \
|
11 |
+
mkdir -p /var/cache/nginx && \
|
12 |
+
mkdir -p /var/run && \
|
13 |
+
chmod -R 777 /var/log/nginx && \
|
14 |
+
chmod -R 777 /var/cache/nginx && \
|
15 |
+
chmod -R 777 /var/run
|
16 |
+
|
17 |
+
WORKDIR /app
|
18 |
+
|
19 |
+
EXPOSE 3001
|
20 |
+
|
21 |
+
RUN chmod 777 -R /app
|
22 |
+
|
23 |
+
CMD ["sh", "-c", "nginx & ./cursor2api"]
|