Moge-Row commited on
Commit
b267528
·
1 Parent(s): 1c9b15c

fix port 7860

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM golang:1.25-alpine AS builder
2
 
3
  WORKDIR /app
4
 
@@ -23,6 +23,7 @@ COPY --from=builder /app/zai-proxy .
23
  # proxies.txt 可通过 docker run -v ./proxies.txt:/app/proxies.txt 挂载
24
  VOLUME ["/app/proxies.txt"]
25
 
26
- EXPOSE 8000
27
 
 
28
  CMD ["./zai-proxy"]
 
1
+ FROM golang:1.23-alpine AS builder
2
 
3
  WORKDIR /app
4
 
 
23
  # proxies.txt 可通过 docker run -v ./proxies.txt:/app/proxies.txt 挂载
24
  VOLUME ["/app/proxies.txt"]
25
 
26
+ EXPOSE 7860
27
 
28
+ ENV PORT=7860
29
  CMD ["./zai-proxy"]