{"id":24772561,"url":"https://github.com/pradumnasaraf/deno-docker","last_synced_at":"2026-02-16T01:08:27.478Z","repository":{"id":277384848,"uuid":"932256994","full_name":"Pradumnasaraf/deno-docker","owner":"Pradumnasaraf","description":"About A simple HTTP server implemented in TypeScript uses Deno as runtime. This is for Docker's official Deno Language Guide","archived":false,"fork":false,"pushed_at":"2025-03-22T13:52:54.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T09:23:13.750Z","etag":null,"topics":["deno","docker","docker-compose","kubernetes"],"latest_commit_sha":null,"homepage":"https://docs.docker.com/guides/deno","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pradumnasaraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2025-02-13T16:15:35.000Z","updated_at":"2025-05-11T08:49:04.000Z","dependencies_parsed_at":"2025-02-13T17:35:11.069Z","dependency_job_id":"49906f9b-069c-4ff1-8826-6077f34606cf","html_url":"https://github.com/Pradumnasaraf/deno-docker","commit_stats":null,"previous_names":["pradumnasaraf/docker-deno","pradumnasaraf/deno-docker"],"tags_count":0,"template":false,"template_full_name":"dockersamples/sample-app-template","purl":"pkg:github/Pradumnasaraf/deno-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fdeno-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fdeno-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fdeno-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fdeno-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pradumnasaraf","download_url":"https://codeload.github.com/Pradumnasaraf/deno-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fdeno-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273378099,"owners_count":25094711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deno","docker","docker-compose","kubernetes"],"created_at":"2025-01-29T04:23:20.336Z","updated_at":"2026-02-16T01:08:27.385Z","avatar_url":"https://github.com/Pradumnasaraf.png","language":"TypeScript","funding_links":["https://github.com/sponsors/eddiejaoude"],"categories":[],"sub_categories":[],"readme":"## Deno API\n\nA simple HTTP server build with TypeScript and Deno as a runtime to serve a simple JSON response. This is for Docker's [Deno Language Guide](https://docs.docker.com/guides/deno/).\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## Project Structure\n\n- **server.js** - The main application file. This file contains the main server code for the application.\n- **Dockerfile** - The Dockerfile for building the application image.\n- **compose.yml** - The Docker Compose file for running the application.\n\n## Setup Instructions\n\n### Running with Docker Compose\n\nTo run the Deno server using Docker Compose, you'll need to create a Dockerfile for the server. Below is the [Dockerfile](Dockerfile) for the our server:\n\n```Dockerfile\n# Use the official Deno image\nFROM denoland/deno:latest\n\n# Set the working directory\nWORKDIR /app\n\n# Copy server code into the container\nCOPY server.ts .\n\n# Set permissions (optional but recommended for security)\nUSER deno\n\n# Expose port 8000\nEXPOSE 8000\n\n# Run the Deno server\nCMD [\"run\", \"--allow-net\", \"server.ts\"]\n```\n\nTo run this application using Docker Compose, you'll need to create a `compose.yml` file. Here's the `compose.yml` file:\n\n```yaml\nservices:\n  server:\n    image: deno-server\n    build:\n      context: .\n      dockerfile: Dockerfile\n    ports:\n      - \"8000:8000\"\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 8000 to port 8000 on the host machine. You can then access the API by visiting `http://localhost:8000` in your web browser.\n\n## Backlinks\nFor more information, check the related [use case guide](https://docs.docker.com/guides/deno).\n\n## License\nThis project is licensed under the [Apache 2.0 License](/LICENSE).\n\n## Contributing\n\nSince this project is intended to support a specific use case guide, contributions are limited to bug fixes or security issues. If you have a question, feel free to open an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fdeno-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradumnasaraf%2Fdeno-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fdeno-docker/lists"}