A GenAI-powered tool that generates optimized Dockerfiles based on your programming language input. This project leverages Ollama with the LLaMA3 model to create Dockerfiles that follow best practices for containerization.
π AI-powered Dockerfile generation
π§ Uses LLaMA3 model via Ollama
βοΈ Generates production-ready, optimized Dockerfiles
π‘ Simple and easy to use CLI interface
For Linux
curl -fsSL https://ollama.com/install.sh | sh
For macOS
brew install ollama
ollama serve
ollama pull llama3.2:1b
-
Clone the Repository
git clone https://github.com/your-username/dockerfile-generator.git cd dockerfile-generator -
Create a Virtual Environment
python3 -m venv venv source venv/bin/activate -
Install Dependencies
pip install -r requirements.txt
python3 generate_dockerfile.py
Input: Language: Node.js
Output: FROM node:18-alpine WORKDIR /app COPY package*.json ./ RUN npm install COPY . . CMD ["node", "index.js"]