rclon commited on
Commit
c5fc148
·
verified ·
1 Parent(s): 5481ac0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -17
Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
- FROM pengzhile/new-api AS builder
2
-
3
- FROM nginx:alpine
4
- COPY --from=builder /one-api /one-api
5
- WORKDIR /data
6
- RUN chmod +x /one-api && \
7
- mkdir -p /data && chmod 777 /data && \
8
- mkdir -p logs && chmod 777 logs && \
9
- chmod 777 /var/cache/nginx && \
10
- mkdir -p /var/log/nginx && chmod 777 /var/log/nginx && \
11
- touch /var/run/nginx.pid && chmod 777 /var/run/nginx.pid
12
-
13
- COPY nginx.conf /etc/nginx/nginx.conf
14
- EXPOSE 7860
15
- COPY start.sh /start.sh
16
- RUN chmod +x /start.sh
17
- CMD ["/start.sh"]
 
1
+ FROM pengzhile/new-api:latest AS builder
2
+
3
+ FROM nginx:alpine
4
+ COPY --from=builder /one-api /one-api
5
+ WORKDIR /data
6
+ RUN chmod +x /one-api && \
7
+ mkdir -p /data && chmod 777 /data && \
8
+ mkdir -p logs && chmod 777 logs && \
9
+ chmod 777 /var/cache/nginx && \
10
+ mkdir -p /var/log/nginx && chmod 777 /var/log/nginx && \
11
+ touch /var/run/nginx.pid && chmod 777 /var/run/nginx.pid
12
+
13
+ COPY nginx.conf /etc/nginx/nginx.conf
14
+ EXPOSE 7860
15
+ COPY start.sh /start.sh
16
+ RUN chmod +x /start.sh
17
+ CMD ["/start.sh"]