Stakpak Docs
Go to StakpakGo to API DocsDiscord
  • Get Started
    • Welcome to Stakpak! 🚀
    • Installing Stakpak CLI
      • Installation on Linux
      • Installation on MacOS
      • Installation on Windows
  • Security at Stakpak
  • DevOps Agent
    • Get Started
    • Containerize Next.js Application
  • Web IDE
    • Features
  • CLI
    • Features
  • API
    • Manage API Keys
    • API Docs
  • MCP Server
Powered by GitBook
On this page
  1. DevOps Agent

Containerize Next.js Application

This step-by-step guide walks you through containerizing a Next.js application using Stakpak’s AI DevOps agent.

PreviousGet StartedNextFeatures

Last updated 2 months ago

By the end of the guide, Stakpak's AI agent will:

  • Create the Dockerfile

  • Build and run the Next.js app in a Docker container

  1. Go to , sign in and create a new flow.

  2. Click on agent (top-right corner).

  1. Start by ensuring the Stakpak CLI is installed. If it's not, install it first before proceeding with the agent's steps.

  1. Choose dave agent. This is the agent that creates Dockerfiles to containerize your app.

  1. Copy & run the command on your terminal to start the agent session.

  1. Answer the questions the AI agent asks based on your app. Provide as much information and dependencies as possible.

  1. The agent creates the Dockerfile.

  1. Accept the command to run the Docker container. Each step has it's reasoning.

  1. Once the agent finishes all steps, the status will be changed to Complete.

Congrats! Your app is ready to use!

You now have the Dockerfile in your directory and your docker container up and running! All autonomous

P.S. (Pretty Sweet bonus info): try containerizing any app —Flask, FastAPI, Next.js, Node.js, you name it)— with your AI DevOps agent!

🎉
💃
🤖
😉
🚀
https://stakpak.dev/
Agent in UI
Install Stakpak CLI
Choose your AI Agent
Command to run on terminal
Questions from the AI agent
Creating the Dockerfile
Commands run by the AI agent
Agent completed containerization
Successful containerization