{"id":28529857,"url":"https://github.com/pradumnasaraf/bun-docker","last_synced_at":"2026-04-28T21:34:20.323Z","repository":{"id":264976401,"uuid":"853180451","full_name":"Pradumnasaraf/bun-docker","owner":"Pradumnasaraf","description":"About A simple HTTP server implemented in JavaScript uses Bun as runtime. This is for Docker's official Bun Language Guide.  Resources","archived":false,"fork":false,"pushed_at":"2024-09-06T08:26:53.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T18:53:53.130Z","etag":null,"topics":["bun","docker","docker-compose"],"latest_commit_sha":null,"homepage":"https://docs.docker.com/guides/bun","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pradumnasaraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["eddiejaoude"]}},"created_at":"2024-09-06T06:30:49.000Z","updated_at":"2025-05-11T08:49:21.000Z","dependencies_parsed_at":"2024-11-27T06:34:15.973Z","dependency_job_id":null,"html_url":"https://github.com/Pradumnasaraf/bun-docker","commit_stats":null,"previous_names":["pradumnasaraf/bun-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pradumnasaraf/bun-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fbun-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fbun-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fbun-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fbun-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pradumnasaraf","download_url":"https://codeload.github.com/Pradumnasaraf/bun-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fbun-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","docker","docker-compose"],"created_at":"2025-06-09T14:12:22.700Z","updated_at":"2026-04-28T21:34:20.307Z","avatar_url":"https://github.com/Pradumnasaraf.png","language":"JavaScript","funding_links":["https://github.com/sponsors/eddiejaoude"],"categories":[],"sub_categories":[],"readme":"A simple HTTP server build with JavaScript and using Bun as runtime to serve a simple JSON response. This is for Docker's [Bun Language Guide](https://docs.docker.com/language/bun/).\n\n## API\n\nThe server only supports the HTTP GET method at the moment. When a GET request is received, the server responds with a JSON object:\n\n```json\n{\n    \"message\": \"OK\"\n}\n```\n\n## Running with Docker Compose\n\nBelow is the [Dockerfile](Dockerfile) for the our server:\n\n```Dockerfile\n# Use the official Bun image as the base image\nFROM oven/bun:latest\n\n# Set the working directory in the container\nWORKDIR /app\n\n# Copy the current directory contents into the container at /app\nCOPY . .\n\n# Expose the port on which the API will listen\nEXPOSE 3000\n\n# Run the server when the container launches\nCMD [\"bun\", \"server.js\"]\n```\n\nTo run this application using Docker Compose, you'll need to create a `compose.yml` file.\n\nHere's the `compose.yml` file:\n\n```yaml\nservices:\n  server:\n    image: bun-api\n    build:\n      context: .\n      dockerfile: Dockerfile\n    ports:\n      - \"3000:3000\"\n```\n\nTo build and run the Docker image using Docker Compose, use the following command:\n\n```bash\ndocker compose up\n```\n\nThis will build the Docker image and then run it, mapping the container's port 3000 to port 3000 on the host machine. You can then access the API by visiting `http://localhost:3000` in your web browser.\n\n## Contributing\n\nAny feedback and contributions are welcome! Please open an issue before submitting a pull request.\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fbun-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradumnasaraf%2Fbun-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fbun-docker/lists"}