Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐳 GenDocker - Dockerfile Generator

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.

πŸ“¦ Features git

πŸ” AI-powered Dockerfile generation

🧠 Uses LLaMA3 model via Ollama

βš™οΈ Generates production-ready, optimized Dockerfiles

πŸ’‘ Simple and easy to use CLI interface

πŸ“‹ Prerequisites

πŸ™ Install Ollama

For Linux

    curl -fsSL https://ollama.com/install.sh | sh

For macOS

    brew install ollama

▢️ Start Ollama Service

ollama serve

πŸ“₯ Pull the LLaMA3 Model

ollama pull llama3.2:1b

πŸš€ Project Setup

  1. Clone the Repository

     git clone https://github.com/your-username/dockerfile-generator.git
     cd dockerfile-generator
    
  2. Create a Virtual Environment

     python3 -m venv venv
     source venv/bin/activate
    
  3. Install Dependencies

     pip install -r requirements.txt
    

🧠 Run the Application

python3 generate_dockerfile.py

πŸ“„ Example Output

Input: Language: Node.js

Output: FROM node:18-alpine WORKDIR /app COPY package*.json ./ RUN npm install COPY . . CMD ["node", "index.js"]

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages