Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerized openai-realtime-console server not accessible from browser #64

Open
gwpl opened this issue Oct 16, 2024 · 1 comment
Open

Comments

@gwpl
Copy link

gwpl commented Oct 16, 2024

Given that this project relies on many dependencies, could you consider providing Dockerfile and run_in_docker.sh , that will allow smooth build and running on different platforms ? (especially Linux, so could be also run_in_docker_for_linux.sh for now?)

@gwpl
Copy link
Author

gwpl commented Dec 22, 2024

Dockerized openai-realtime-console server not accessible from browser*


Description

When running the openai-realtime-console project in a Docker container, the server starts and logs Server listening at http://127.0.0.1:3000. However, it is not accessible from the host browser.


Steps to Reproduce

  1. Clone the repository:
    git clone https://github.com/openai/openai-realtime-console.git
    cd openai-realtime-console
  2. Create a Dockerfile:
    FROM node:18-bullseye
    WORKDIR /usr/src/app
    COPY package*.json ./
    RUN npm install
    COPY . .
    RUN npm run build
    EXPOSE 3000
    CMD ["npm", "start"]
  3. Build the Docker image:
    docker build -t openai-realtime-console .
  4. Run the Docker container:
    docker run -p 3000:3000 -e OPENAI_API_KEY="$OPENAI_API_KEY" openai-realtime-console
  5. Open http://localhost:3000 in a browser.

Expected Behavior

The server should be accessible from the browser at http://localhost:3000.


Actual Behavior

The server is not accessible from the host browser. Logs show:

2024-12-22 16:55:44.279+0000 - info - Server listening at http://[::1]:3000
2024-12-22 16:55:44.280+0000 - info - Server listening at http://127.0.0.1:3000

Dockerfile_github_only_allows_markdown_attachement.md

Bonus points: if you provide working Dockerfile and README.md instructions helping users to run it safely isolated not only in Docker but also using Kata Containers and/or gVisor.

@gwpl gwpl changed the title Please provide Dockerfile to make easy build and run across different platforms Dockerized openai-realtime-console server not accessible from browser Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant