diff --git a/Dockerfile b/Dockerfile index 9a215b0..d48efef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,5 +36,5 @@ ENV TZ Asia/Shanghai WORKDIR /app COPY --from=Gobuilder /app/gitproxy /app/gitproxy -COPY --from=builder /app/out /app/ +COPY --from=builder /app/out /app/out/ CMD ["./gitproxy"] \ No newline at end of file diff --git a/main.go b/main.go index 9f06033..3659641 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ func main() { router := router.NewRouter() srv := &http.Server{ Handler: handler.NewHandler(router), - Addr: "127.0.0.1:8888", + Addr: "0.0.0.0:8888", WriteTimeout: 15 * time.Second, ReadTimeout: 15 * time.Second, }