sfun commited on
Commit
7ff673c
1 Parent(s): 273f26b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM justsong/one-api:latest
2
 
3
  RUN apk add --no-cache pcre2
4
 
5
- COPY --from=cloudflare/cloudflared:latest /usr/local/bin/cloudflared /usr/local/bin/cloudflared
6
  COPY --from=nginx:alpine /etc/nginx /etc/nginx
7
  COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
8
 
@@ -17,12 +16,8 @@ RUN mkdir -p /var/log/nginx && \
17
 
18
  WORKDIR /data
19
 
20
- ENV CF_TOKEN=CF_TOKEN
21
-
22
  EXPOSE 3001
23
 
24
  RUN chmod 777 -R /data
25
 
26
- ENTRYPOINT cloudflared tunnel --no-autoupdate run --token $CF_TOKEN & \
27
- nginx & \
28
- /one-api
 
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
 
 
16
 
17
  WORKDIR /data
18
 
 
 
19
  EXPOSE 3001
20
 
21
  RUN chmod 777 -R /data
22
 
23
+ ENTRYPOINT ["sh", "-c", "nginx & /one-api"]