Skip to content

Commit

Permalink
fix: socket addr
Browse files Browse the repository at this point in the history
  • Loading branch information
shencangsheng committed Jun 17, 2024
1 parent c104927 commit 43032ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ WORKDIR /usr/src/app

COPY --from=builder /usr/src/app/target/release/registry-mirror-proxy .

EXPOSE [3000]

CMD ["./registry-mirror-proxy"]
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn perform_docker_pull_push(image_name: &str, image_reference: &str) -> Re

#[tokio::main]
async fn main() {
let addr = ([127, 0, 0, 1], 3000).into();
let addr = ([0, 0, 0, 0], 3000).into();

let make_svc = make_service_fn(|_conn| async {
Ok::<_, Infallible>(service_fn(handle_request))
Expand Down

0 comments on commit 43032ff

Please sign in to comment.