# Alternatives to Dockerfiles for Crafting Container Images

DevFeed: [Alternatives to Dockerfiles for Crafting Container Images](<https://devfeed.tech/articles/move-over-dockerfiles-the-new-way-to-craft-containers-13166.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/move-over-dockerfiles-the-new-way-to-craft-containers>)

Published: 2023-04-27T00:00:00Z

Content type: article

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [Containers](<https://devfeed.tech/topics/containers.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [chainguard-images](<https://devfeed.tech/tags/chainguard-images.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [dockerfiles](<https://devfeed.tech/tags/dockerfiles.md>), [security](<https://devfeed.tech/tags/security.md>), [security-vulnerabilities](<https://devfeed.tech/tags/security-vulnerabilities.md>), [vulnerability-management](<https://devfeed.tech/tags/vulnerability-management.md>)

## AI overview

This article examines drawbacks of Dockerfiles for building container images, including security concerns, performance issues, image bloat, and reliance on online build services. It surveys alternatives such as ko, Bazel, Nix, and apko, comparing their strengths and weaknesses and discussing how to choose and migrate to an approach.

## Source excerpt

Creating Docker images can sometimes be a pain. Here are alternatives for crafting containers, like ko, Bazel, Nix, and apko, and their strengths and weaknesses