Dockeryzer is a tool that helps you to create a Dockerfile for your project. It is a simple tool that reads the project's dependencies and creates a Dockerfile with the necessary commands to install them.
- Create a Dockerfile for your project. Dockeryzer uses best practices to create a Dockerfile to optimize the image size.
- Compare two Docker images. Dockeryzer compares two Docker images and shows the differences between them.
- Analyze a Docker image. Dockeryzer shows the details of a Docker image, like the size of the image and the number of layers.
- Save time. Dockeryzer creates a Dockerfile for you, so you don't have to write it manually.
- Optimize your Docker images. Dockeryzer uses best practices to create a Dockerfile, so your Docker images will be smaller and faster.
- Use multi-stage builds to reduce the size of the image.
- Use the
COPYcommand instead of theADDcommand. - Install only the necessary dependencies.
- Use smaller base images like
alpineorslim.
- Clone this repository:
git clone git@github.com:jorgevvs2/dockeryzer.git-
Set up your OpenAI API key:
- Copy the
build.example.shfile tobuild.sh
cp build.example.sh build.sh
- Edit
build.shand add your OpenAI API key
# build.sh API_KEY="your-openai-api-key-here"
- Copy the
-
Build the project:
chmod +x build.sh # Make the build script executable
./build.sh # Build the project with your API key- Run the project:
./dockeryzerYou can also create an alias to run the project:
alias dockeryzer="~/path/to/dockeryzer"Note: The
build.shfile is ignored by git to protect your API key. Make sure not to commit this file with your actual API key.
With the create command you can generate a Dockerfile and create a Docker image (optional).
dockeryzer create -n imageNameAlso, you can ignore comments in the Dockerfile with the flag --ignore-comments or -i.
dockeryzer create -n imageName -iWith the compare command you can compare two Docker images.
dockeryzer compare image1 image2With the analyze command you can analyze a Docker image.
dockeryzer analyze imageNameIf you want to contribute to this project, feel free to open an issue or create a pull request.