Update Dockerfile
Browse files- 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
|
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"]
|
|
|
|