{"id":47403097,"url":"https://github.com/dockersamples/labspace-building-images","last_synced_at":"2026-04-17T21:03:44.046Z","repository":{"id":341910345,"uuid":"1171996169","full_name":"dockersamples/labspace-building-images","owner":"dockersamples","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-24T20:17:28.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T01:40:16.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dockersamples.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T20:50:50.000Z","updated_at":"2026-03-24T20:17:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dockersamples/labspace-building-images","commit_stats":null,"previous_names":["dockersamples/labspace-building-images"],"tags_count":0,"template":false,"template_full_name":"dockersamples/labspace-starter","purl":"pkg:github/dockersamples/labspace-building-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Flabspace-building-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Flabspace-building-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Flabspace-building-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Flabspace-building-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockersamples","download_url":"https://codeload.github.com/dockersamples/labspace-building-images/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockersamples%2Flabspace-building-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31368156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-03-20T14:00:42.056Z","updated_at":"2026-04-03T18:01:03.446Z","avatar_url":"https://github.com/dockersamples.png","language":"Python","funding_links":[],"categories":["The Awesome List"],"sub_categories":["**Build**"],"readme":"# Building Container Images: Best Practices\n\nA Docker Labspace that teaches how to build production-grade container images using Dockerfile best practices.\n\n## What You'll Learn\n\n- How Docker images are composed of layers and why layer order matters\n- Structuring Dockerfiles for fast, incremental builds using the layer cache\n- Writing a `.dockerignore` and running containers as a non-root user\n- Reducing image size dramatically with multi-stage builds\n- Choosing the right base image (`slim`, `alpine`, distroless)\n- Safely injecting secrets at build time using `--mount=type=secret`\n\n## Launch the Labspace\n\nTo launch the Labspace, run the following command:\n\n```bash\ndocker compose -f oci://dockersamples/labspace-building-images up -d\n```\n\nAnd then open your browser to http://localhost:3030.\n\n### Using the Docker Desktop extension\n\nIf you have the Labspace extension installed (`docker extension install dockersamples/labspace-extension` if not), you can also [click this link](https://open.docker.com/dashboard/extension-tab?extensionId=dockersamples/labspace-extension\u0026location=dockersamples/labspace-building-images\u0026title=Building%20Images) to launch the Labspace.\n\n## Contributing\n\nIf you find something wrong or something that needs to be updated, feel free to submit a PR. If you want to make a larger change, feel free to fork the repo into your own repository.\n\n**Important note:** If you fork it, you will need to update the GHA workflow to point to your own Hub repo.\n\n1. Clone this repo\n\n2. Start the Labspace in content development mode:\n\n    ```bash\n    # On Mac/Linux\n    CONTENT_PATH=$PWD docker compose up --watch\n\n    # On Windows with PowerShell\n    $Env:CONTENT_PATH = (Get-Location).Path; docker compose up --watch\n    ```\n\n3. Open the Labspace at http://dockerlabs.xyz.\n\n4. Make the necessary changes and validate they appear as you expect in the Labspace\n\n    Be sure to check out the [docs](https://github.com/dockersamples/labspace-infra/tree/main/docs) for additional information and guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Flabspace-building-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockersamples%2Flabspace-building-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockersamples%2Flabspace-building-images/lists"}