{"id":34725823,"url":"https://github.com/liquidlight/docker-slim","last_synced_at":"2026-03-14T09:35:15.222Z","repository":{"id":193259361,"uuid":"688423911","full_name":"liquidlight/docker-slim","owner":"liquidlight","description":"Docker image with Docker Slim pre-built","archived":false,"fork":false,"pushed_at":"2024-02-20T21:02:32.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T06:28:41.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liquidlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-07T10:16:05.000Z","updated_at":"2023-09-07T10:50:56.000Z","dependencies_parsed_at":"2024-02-20T21:55:33.543Z","dependency_job_id":null,"html_url":"https://github.com/liquidlight/docker-slim","commit_stats":null,"previous_names":["liquidlight/docker-slim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liquidlight/docker-slim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fdocker-slim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fdocker-slim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fdocker-slim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fdocker-slim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liquidlight","download_url":"https://codeload.github.com/liquidlight/docker-slim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liquidlight%2Fdocker-slim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28017200,"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-12-25T02:00:05.988Z","response_time":58,"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":[],"created_at":"2025-12-25T02:27:11.833Z","updated_at":"2025-12-25T02:27:11.929Z","avatar_url":"https://github.com/liquidlight.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Slim\n\n**Status**: [![Create and publish a Docker image](https://github.com/liquidlight/docker-slim/actions/workflows/push-docker-image.yml/badge.svg)](https://github.com/liquidlight/docker-slim/actions/workflows/push-docker-image.yml)\n\nA Docker image containing [Docker Slim](https://github.com/slimtoolkit/slim) for use with CI \u0026 CD pipelines.\n\n[Installing Docker Slim](https://github.com/slimtoolkit/slim#installation) is noted as a series of commands which xan be run as part of your pipeline. However, to save resources, time and a point of failure (if the machine at the time cannot execute the `curl` command) we thought it efficient to have it packaged ready to go.\n\n## Usage\n\nThis image is designed to be used as the base image for a job within a CI/CD pipeline.\n\nWe only have experience with Gitlab and Github, so PRs with examples for other tools would be appreciated.\n\n### Gitlab\n\nIt is worth running `docker-slim` locally to ensure you get the parameters you need, some useful ones i've found:\n\n- `--http-probe=\"false\"` combined with `--continue-after=\"1\"` is handy if your docker image doesn't expose ports\n- `--include-path=\"/usr/local/bin/docker-slim\"` - makes sure your custom scripts or files \u0026 folders are definitely included\n\n```yaml\nslim:image:build:\n  # Use the image with built-in docker slim\n  image: ghcr.io/liquidlight/docker-slim:1.40.11\n  # Specify input and output names\n  variables:\n    IMAGE_NAME: \"$CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH\"\n    SLIM_IMAGE_NAME: \"$IMAGE_NAME-slim\"\n  # Login to the registry\n  before_script:\n    # Login to our registry\n    - echo \"$CI_REGISTRY_PASSWORD\" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin\n  script:\n    # Ensure that the fat image is cached locally\n    - docker pull $IMAGE_NAME\n    # Note regarding parameters: \"--target\" is the input, \"--tag\" is the output\n    - \u003e\n      docker-slim build\n      --target=\"$IMAGE_NAME\"\n      --tag=\"$SLIM_IMAGE_NAME\"\n\n    # Push the slimmer image\n    - docker push $SLIM_IMAGE_NAME\n```\n\n## Github\n\n_Note:_ We haven't properly worked out how to use our image on Github Actions, so for now, the [Docker Slim GitHub Action](https://github.com/marketplace/actions/docker-slim-github-action) is available.\n\nThere is an example [in this very repository](https://github.com/liquidlight/docker-slim/blob/main/.github/workflows/push-docker-image.yml).\n\n```yaml\n- name: Make a Slim image\n  uses: kitabisa/docker-slim-action@v1\n  env:\n    DSLIM_HTTP_PROBE: false\n  with:\n    target: ${{ env.IMAGE_NAME }}\n    tag: \"${{ env.DOCKER_SLIM_VERSION }}-slim\"\n\n  # Push to the registry\n  - run: docker push ${{ env.IMAGE_NAME }}-slim\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquidlight%2Fdocker-slim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliquidlight%2Fdocker-slim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliquidlight%2Fdocker-slim/lists"}