{"id":13998237,"url":"https://github.com/imgproxy/imgproxy-docker-base","last_synced_at":"2025-07-23T06:31:02.987Z","repository":{"id":48188437,"uuid":"272446719","full_name":"imgproxy/imgproxy-docker-base","owner":"imgproxy","description":"Base Docker image with the latest imgproxy dependencies","archived":false,"fork":false,"pushed_at":"2024-11-20T17:30:54.000Z","size":107,"stargazers_count":18,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-20T18:31:14.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imgproxy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-06-15T13:30:12.000Z","updated_at":"2024-11-20T17:31:29.000Z","dependencies_parsed_at":"2023-02-19T09:45:26.832Z","dependency_job_id":"591be55e-4b3c-4ba2-8677-75e87c76e4fc","html_url":"https://github.com/imgproxy/imgproxy-docker-base","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgproxy%2Fimgproxy-docker-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgproxy%2Fimgproxy-docker-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgproxy%2Fimgproxy-docker-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgproxy%2Fimgproxy-docker-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imgproxy","download_url":"https://codeload.github.com/imgproxy/imgproxy-docker-base/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227245138,"owners_count":17753239,"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":[],"created_at":"2024-08-09T19:01:29.747Z","updated_at":"2024-11-30T00:31:20.583Z","avatar_url":"https://github.com/imgproxy.png","language":"Shell","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"# imgproxy Docker base\n\n## What is this?\n\nBase Docker image with the latest imgproxy dependencies. Ideal for imgproxy development and building its Docker images.\n\n## How to use this?\n\n### For development\n\nRun this image with your development directory mounted:\n\n```shell\ndocker run --rm -it \\\n  -p 8080:8080 \\\n  -v $(pwd):/app \\\n  --name imgproxy_dev \\\n  ghcr.io/imgproxy/imgproxy-base:latest\n```\n\n...and build your imgproxy as usual:\n\n```shell\ngo build\n```\n\n### For production\n\nIf you don't care about the size, you can just build your Docker image on top of this one:\n\n```dockerfile\nFROM ghcr.io/imgproxy/imgproxy-base:latest\n\nCOPY . .\n# We use bash here to load dynamically generated build environment from /root/.basrc\nRUN [\"bash\", \"-c\", \"go build -v -o /opt/imgproxy/bin/imgproxy\"]\nRUN ln -s /opt/imgproxy/bin/imgproxy /usr/local/bin/imgproxy\n\nENV VIPS_WARNING=0\nENV MALLOC_ARENA_MAX=2\n\nRUN groupadd -r imgproxy \u0026\u0026 useradd -r -u 999 -g imgproxy imgproxy\nUSER 999\n\nCMD [\"imgproxy\"]\n\nEXPOSE 8080\n```\n\nBut you probably want to use multistage build to minimize the final image, and it's a bit tricky. You need to take care of the following:\n\n1. Copy built dependencies from `/opt/imgproxy`.\n2. Install required system dependencies.\n\nHere is the working example:\n\n```dockerfile\nFROM ghcr.io/imgproxy/imgproxy-base:latest\n\nCOPY . .\nRUN [\"bash\", \"-c\", \"go build -v -o /opt/imgproxy/bin/imgproxy\"]\n\n# Remove unnecessary files\nRUN rm -rf /opt/imgproxy/lib/pkgconfig /opt/imgproxy/lib/cmake\n\n# ==================================================================================================\n# Final image\n\nFROM public.ecr.aws/ubuntu/ubuntu:noble\n\nRUN apt-get update \\\n  \u0026\u0026 apt-get upgrade -y \\\n  \u0026\u0026 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \\\n    bash \\\n    ca-certificates \\\n    libstdc++6 \\\n    fontconfig-config \\\n    fonts-dejavu-core \\\n    media-types \\\n  \u0026\u0026 rm -rf /var/lib/apt/lists/* \\\n  \u0026\u0026 rm -rf /etc/fonts/conf.d/10-sub-pixel-rgb.conf /etc/fonts/conf.d/11-lcdfilter-default.conf\n\nCOPY --from=build /opt/imgproxy/bin/imgproxy /opt/imgproxy/bin/\nCOPY --from=build /opt/imgproxy/lib /opt/imgproxy/lib\nRUN ln -s /opt/imgproxy/bin/imgproxy /usr/local/bin/imgproxy\n\nENV VIPS_WARNING=0\nENV MALLOC_ARENA_MAX=2\n\nRUN groupadd -r imgproxy \u0026\u0026 useradd -r -u 999 -g imgproxy imgproxy\nUSER 999\n\nCMD [\"imgproxy\"]\n\nEXPOSE 8080\n```\n\n## Author\n\nSergey \"[DarthSim](https://github.com/DarthSim)\" Alexandrovich\n\n## License\n\nimgproxy-base is licensed under the MIT license.\n\nSee LICENSE for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimgproxy%2Fimgproxy-docker-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimgproxy%2Fimgproxy-docker-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimgproxy%2Fimgproxy-docker-base/lists"}