{"id":22748158,"url":"https://github.com/githubfoam/debian-docker-vagrant","last_synced_at":"2026-04-09T11:03:25.761Z","repository":{"id":38450357,"uuid":"452233807","full_name":"githubfoam/debian-docker-vagrant","owner":"githubfoam","description":"debian docker vagrant","archived":false,"fork":false,"pushed_at":"2022-01-26T12:51:16.000Z","size":20,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-30T05:42:47.111Z","etag":null,"topics":["debian","distroless","dive","docker","multi-stage-build","node-js","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/githubfoam.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}},"created_at":"2022-01-26T10:34:23.000Z","updated_at":"2022-01-26T12:51:19.000Z","dependencies_parsed_at":"2022-06-29T12:31:39.731Z","dependency_job_id":null,"html_url":"https://github.com/githubfoam/debian-docker-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/githubfoam/debian-docker-vagrant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fdebian-docker-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fdebian-docker-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fdebian-docker-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fdebian-docker-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubfoam","download_url":"https://codeload.github.com/githubfoam/debian-docker-vagrant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fdebian-docker-vagrant/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265760405,"owners_count":23824021,"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","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":["debian","distroless","dive","docker","multi-stage-build","node-js","vagrant"],"created_at":"2024-12-11T03:20:19.416Z","updated_at":"2025-12-30T22:07:08.971Z","avatar_url":"https://github.com/githubfoam.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debian-docker-vagrant\n~~~~\n\u003e del Vagrantfile\n\u003evagrant init --template Vagrantfile.provision.bash.erb\n\u003edir\n\u003evagrant up \"vg-debian-04\"\n\n\n\u003evagrant destroy -f \"vg-debian-04\"\n\n\u003evagrant global-status\n\n\u003edel Vagrantfile\n\u003edir\n~~~~\n~~~~\n\nvagrant up vg-debian-03\ncd /vagrant/dockerfiles/multi/\n\n#docker build --no-cache  \n#force rebuilding of layers already available,force the execution of each step/instruction in the Dockerfile\n\nsudo docker build -t devopscube/node-app:1.0-nocache --no-cache -f Dockerfile.single .\n\nsudo docker build -t devopscube/node-app:1.0-cache -f Dockerfile.single .\n\n$ sudo docker image ls\nREPOSITORY            TAG           IMAGE ID       CREATED         SIZE\ndevopscube/node-app          1.0-cache                  8dc5fd7228bd   About a minute ago   910MB\ndevopscube/node-app          1.0-nocache                8dc5fd7228bd   About a minute ago   910MB\n~~~~\n\n~~~~\nvagrant up vg-debian-03\ncd /vagrant/dockerfiles/multi/\n\nsudo docker build -t devopscube/node-app-multi:1.0-alpine --no-cache -f Dockerfile.multi.alpine  .\nsudo docker build -t devopscube/node-app-multi:1.0-distroless --no-cache -f Dockerfile.multi.distroless  .\nsudo docker build -t devopscube/node-app-single:1.0 --no-cache -f Dockerfile.single .\nsudo docker build -t devopscube/node-app-multi:1.0-debian-bullseye-slim --no-cache -f Dockerfile.multi.debian  .\n\n$ sudo docker image ls\nREPOSITORY                   TAG              IMAGE ID       CREATED          SIZE\ndevopscube/node-app-single   1.0              e8b38386a0dc   2 minutes ago    910MB\ndevopscube/node-app-multi    1.0-debian-bullseye-slim   e4a8a36e1480   21 seconds ago       245MB\ndevopscube/node-app-multi    1.0-alpine       ad41c10f6698   4 minutes ago    171MB\ndevopscube/node-app-multi    1.0-distroless   e1b409353121   3 minutes ago    118MB\n\n\n~~~~\n~~~~\n$ sudo docker history --human --format \"{{.ID}} {{.CreatedBy}}: {{.Size}}\" devopscube/node-app-single:1.0\ne8b38386a0dc /bin/sh -c #(nop)  CMD [\"node\" \"index.js\"]: 0B\n11c8ef8378db /bin/sh -c #(nop)  EXPOSE 3000: 0B\nd6c533204e75 /bin/sh -c npm install: 5.03MB\n8b7a6b2be79d /bin/sh -c #(nop) COPY dir:9301d0637515751ac…: 1.4kB\n842962c4b3a7 /bin/sh -c #(nop)  CMD [\"node\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop)  ENTRYPOINT [\"docker-entry…: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) COPY file:4d192565a7220e13…: 388B\n\u003cmissing\u003e /bin/sh -c set -ex   \u0026\u0026 for key in     6A010…: 7.59MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV YARN_VERSION=1.22.15: 0B\n\u003cmissing\u003e /bin/sh -c ARCH= \u0026\u0026 dpkgArch=\"$(dpkg --print…: 92.9MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV NODE_VERSION=16.13.2: 0B\n\u003cmissing\u003e /bin/sh -c groupadd --gid 1000 node   \u0026\u0026 use…: 334kB\n\u003cmissing\u003e /bin/sh -c set -ex;  apt-get update;  apt-ge…: 510MB\n\u003cmissing\u003e /bin/sh -c apt-get update \u0026\u0026 apt-get install…: 146MB\n\u003cmissing\u003e /bin/sh -c set -ex;  if ! command -v gpg \u003e /…: 17.5MB\n\u003cmissing\u003e /bin/sh -c set -eux;  apt-get update;  apt-g…: 16.5MB\n\u003cmissing\u003e /bin/sh -c #(nop)  CMD [\"bash\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) ADD file:be998d04a8927e9c4…: 114MB\n\n$ sudo docker history --human --format \"{{.ID}} {{.CreatedBy}}: {{.Size}}\" devopscube/node-app-multi:1.0-alpine\nad41c10f6698 /bin/sh -c #(nop)  CMD [\"index.js\"]: 0B\nda5b41b925fb /bin/sh -c #(nop)  EXPOSE 8080: 0B\n6bad03b453c5 /bin/sh -c #(nop) COPY dir:fda48d9f47f743506…: 1.76MB\n025c3cbb849f /bin/sh -c #(nop)  CMD [\"node\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop)  ENTRYPOINT [\"docker-entry…: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) COPY file:4d192565a7220e13…: 388B\n\u003cmissing\u003e /bin/sh -c apk add --no-cache --virtual .bui…: 7.76MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV YARN_VERSION=1.22.17: 0B\n\u003cmissing\u003e /bin/sh -c addgroup -g 1000 node     \u0026\u0026 addu…: 156MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV NODE_VERSION=17.4.0: 0B\n\u003cmissing\u003e /bin/sh -c #(nop)  CMD [\"/bin/sh\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) ADD file:9233f6f2237d79659…: 5.59MB\n\n\n$ sudo docker history --human --format \"{{.ID}} {{.CreatedBy}}: {{.Size}}\" devopscube/node-app-multi:1.0-distroless\ne1b409353121 /bin/sh -c #(nop)  CMD [\"index.js\"]: 0B\na3a60bcb1b40 /bin/sh -c #(nop)  EXPOSE 3000: 0B\n4b3536de4c9d /bin/sh -c #(nop) COPY dir:fda48d9f47f743506…: 1.76MB\nfa463f9d1f7c bazel build ...: 93.3MB\n\u003cmissing\u003e bazel build ...: 2.34MB\n\u003cmissing\u003e bazel build ...: 17.9MB\n\u003cmissing\u003e bazel build ...: 2.36MB\n\n$ sudo docker history --human --format \"{{.ID}} {{.CreatedBy}}: {{.Size}}\" devopscube/node-app-multi:1.0-debian-bullseye-slim\ne4a8a36e1480 /bin/sh -c #(nop)  CMD [\"index.js\"]: 0B\n0cd8d3500cb5 /bin/sh -c #(nop)  EXPOSE 8080: 0B\n9e9b9942f574 /bin/sh -c #(nop) COPY dir:fda48d9f47f743506…: 1.76MB\n41bfb961e3ef /bin/sh -c #(nop)  CMD [\"node\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop)  ENTRYPOINT [\"docker-entry…: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) COPY file:4d192565a7220e13…: 388B\n\u003cmissing\u003e /bin/sh -c set -ex   \u0026\u0026 savedAptMark=\"$(apt-…: 9.48MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV YARN_VERSION=1.22.17: 0B\n\u003cmissing\u003e /bin/sh -c ARCH= \u0026\u0026 dpkgArch=\"$(dpkg --print…: 153MB\n\u003cmissing\u003e /bin/sh -c #(nop)  ENV NODE_VERSION=17.4.0: 0B\n\u003cmissing\u003e /bin/sh -c groupadd --gid 1000 node   \u0026\u0026 use…: 333kB\n\u003cmissing\u003e /bin/sh -c #(nop)  CMD [\"bash\"]: 0B\n\u003cmissing\u003e /bin/sh -c #(nop) ADD file:09675d11695f65c55…: 80.4MB\n\n~~~~\n\n~~~~\nhttps://github.com/wagoodman/dive\n\nsudo dive devopscube/node-app-single:1.0\n\nTotal Image size: 910 MB                                                                                 \nPotential wasted space: 10 MB                                                                             \nImage efficiency score: 99 %\n\n\n\nsudo dive devopscube/node-app-multi:1.0-distroless\n\nTotal Image size: 118 MB                                                                                  \nPotential wasted space: 0 B                                                                               \nImage efficiency score: 100 %\n\nsudo dive devopscube/node-app-multi:1.0-alpine  \n\nTotal Image size: 171 MB                                                                                  \nPotential wasted space: 704 kB                                                                            \nImage efficiency score: 99 %\n\nsudo dive devopscube/node-app-multi:1.0-debian-bullseye-slim\n\nTotal Image size: 245 MB                                                                                  \nPotential wasted space: 6.0 MB                                                                            \nImage efficiency score: 98 %\n~~~~\n~~~~\nhttps://github.com/docker-slim/docker-slim\n\ncurl -L -o ds.tar.gz https://downloads.dockerslim.com/releases/1.37.3/dist_linux.tar.gz\ntar -xvf ds.tar.gz\nmv dist_linux/docker-slim* /usr/local/bin\ndocker-slim\n~~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fdebian-docker-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubfoam%2Fdebian-docker-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fdebian-docker-vagrant/lists"}