{"id":23477676,"url":"https://github.com/fnbubbles420-org/docker-simple-app","last_synced_at":"2026-02-06T05:04:12.716Z","repository":{"id":262330070,"uuid":"868658876","full_name":"FNBUBBLES420-ORG/docker-simple-app","owner":"FNBUBBLES420-ORG","description":"This is a Example on how to use Docker for Beginners","archived":false,"fork":false,"pushed_at":"2025-12-01T20:52:26.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T10:51:10.805Z","etag":null,"topics":["charity","docker","dockerfile","example","fnbubbles420org","javascript","nonprofit","organization"],"latest_commit_sha":null,"homepage":"https://www.fnbubbles420.org/ourmission","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FNBUBBLES420-ORG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["bubblesthedev","fnbubbles420org"],"custom":["https://fnbubbles420.org","https://fnbubbles420.org/volunteer","https://discord.gg/bjbmWaP5p8","https://fnbubbles420.org/donate"]}},"created_at":"2024-10-06T23:54:03.000Z","updated_at":"2025-12-01T20:52:31.000Z","dependencies_parsed_at":"2024-11-11T21:33:51.584Z","dependency_job_id":"7c98c854-2c8b-4f02-8b86-e08812ae3a4d","html_url":"https://github.com/FNBUBBLES420-ORG/docker-simple-app","commit_stats":null,"previous_names":["fnbubbles420-org/docker-simple-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FNBUBBLES420-ORG/docker-simple-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FNBUBBLES420-ORG%2Fdocker-simple-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FNBUBBLES420-ORG%2Fdocker-simple-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FNBUBBLES420-ORG%2Fdocker-simple-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FNBUBBLES420-ORG%2Fdocker-simple-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FNBUBBLES420-ORG","download_url":"https://codeload.github.com/FNBUBBLES420-ORG/docker-simple-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FNBUBBLES420-ORG%2Fdocker-simple-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29151632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["charity","docker","dockerfile","example","fnbubbles420org","javascript","nonprofit","organization"],"created_at":"2024-12-24T18:28:42.822Z","updated_at":"2026-02-06T05:04:12.704Z","avatar_url":"https://github.com/FNBUBBLES420-ORG.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/bubblesthedev","https://github.com/sponsors/fnbubbles420org","https://fnbubbles420.org","https://fnbubbles420.org/volunteer","https://discord.gg/bjbmWaP5p8","https://fnbubbles420.org/donate"],"categories":[],"sub_categories":[],"readme":"# This is an Example on How to Use Docker for Beginners\n\n## Download and Install `Docker`\n- **[Download Docker - arm64](https://desktop.docker.com/win/main/arm64/Docker%20Desktop%20Installer.exe?utm_source=docker\u0026utm_medium=webreferral\u0026utm_campaign=dd-smartbutton\u0026utm_location=module)**\n- **[Download Docker - amd64](https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?utm_source=docker\u0026utm_medium=webreferral\u0026utm_campaign=dd-smartbutton\u0026utm_location=module)**\n- **Follow the instructions to install `Docker Desktop App` if you need help**\n\n# Join the discord if you need help \n\n[https://fnbubbles420.org/discordinvite](https://fnbubbles420.org/discordinvite)\n\n\n## 1. Create the Project Files\n\n- **a. Create a Folder for Your Project:**\n  Open your terminal or command prompt and create a directory:\n  ```bash\n  mkdir docker-simple-app\n  cd docker-simple-app\n\n**b. Create** `app.js`: Inside the docker-simple-app folder, create the `app.js` file. This will be your Node.js web server.\n\n`app.js` content:\n\n```js\n// app.js\nconst express = require('express');\nconst app = express();\nconst port = 9090;\n\napp.get('/', (req, res) =\u003e {\n  res.send('Hello, World! from bubblesthedev');\n});\n\napp.listen(port, () =\u003e {\n  console.log(`App listening on port ${port}`);\n});\n```\n\n**c. Create** `package.json`: Inside the same folder, create a `package.json` file. This will describe your app and its dependencies.\n\n`package.json` content:\n\n```json\n{\n  \"name\": \"docker-simple-app\",\n  \"version\": \"1.0.0\",\n  \"lockfileVersion\": 3,\n  \"requires\": true,\n  \"packages\": {\n    \"\": {\n      \"name\": \"docker-simple-app\",\n      \"version\": \"1.0.0\"\n    }\n  },\n  \"description\": \"## Download and install `Docker` - **[Download Docker- arm64](https://desktop.docker.com/win/main/arm64/Docker%20Desktop%20Installer.exe?utm_source=docker\u0026utm_medium=webreferral\u0026utm_campaign=dd-smartbutton\u0026utm_location=module)** - **[Download_Docker- amd64](https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?utm_source=docker\u0026utm_medium=webreferral\u0026utm_campaign=dd-smartbutton\u0026utm_location=module)** - **Follow the Instruction to install `Docker Desktop App` if you need help** ### Join the Discord - [Fnbubbles420 Org Community](https://www.discord.fnbubbles420.org/invite)\",\n  \"main\": \"app.js\",\n  \"scripts\": {\n    \"start\": \"node app.js\",\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\"\n  },\n  \"keywords\": [],\n  \"author\": \"bubblesthedev\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"express\": \"^4.21.1\"\n  }\n}\n```\n\n## 2. Create the Dockerfile\n\nInside the `docker-simple-app` folder, create a file named `Dockerfile``. This file tells Docker how to build the image.\n\n`Dockerfile` content:\n\n```Dockerfile\n# Use the official Node.js LTS image based on Alpine\nFROM node:lts-alpine\n\n# Set environment variables for production\nENV NODE_ENV=production\n\n# Update apk and explicitly install OpenSSL and other necessary dependencies\nRUN apk update \u0026\u0026 apk add --no-cache openssl bash\n\n# Set working directory inside the container\nWORKDIR /app\n\n# Copy package.json and package-lock.json first to leverage Docker cache\nCOPY package.json package-lock.json ./\n\n# Install dependencies securely\nRUN npm ci --only=production\n\n# Copy the rest of the application files\nCOPY . .\n\n# Expose the app port\nEXPOSE 9090\n\n# Command to start the app\nCMD [\"npm\", \"start\"]\n```\n\n## 3. Build the Docker Image\n\nAfter creating your project files, open your terminal or command prompt in the `docker-simple-app` folder and run the following command to build the Docker image:\n\n```\ndocker build -t simple-node-app .\n```\n\n- `-t simple-node-app`: This tags the image with the name `simple-node-app`.\n- `.`: This tells Docker to use the Dockerfile in the current directory.\n\n## 4. Run the Docker Container\n\nOnce the image is built, you can run the container using:\n\n```\ndocker run -p 9090:9090 simple-node-app\n```\n\n- `-p 9090:9090`: This maps port 9090 on your local machine to port 9090 in the Docker container.\n\n## 5. Access the Application\n\nOpen your browser and go to:\n\n```\nhttp://localhost:9090\n```\n\n- You should see the message:\n\n```\nHello, World! from bubblesthedev\n```\n\n## 6. Stop the Container\n\nTo stop the running container, press `CTRL + C` in the terminal where the container is running.\n\n### List of Running Docker Containers\n\n```\ndocker ps -a\n```\n\n### Stop a Specific Container\n\n```\ndocker stop \u003ccontainer_id_or_name\u003e\n```\n\n- Then run this command again to check:\n\n```\ndocker ps -a\n```\n---\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnbubbles420-org%2Fdocker-simple-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnbubbles420-org%2Fdocker-simple-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnbubbles420-org%2Fdocker-simple-app/lists"}