docker

Generate a Dockerfile for a Vue.js app with nginx serving.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template --skill docker-sayali-ingle-pdl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template/tree/main/.github/agents/app-starter/agents-context/skills/docker
Command: npx skills add https://github.com/sayali-ingle-pdl/adusa-ai-vuejs-app-template --skill docker-sayali-ingle-pdl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of a Dockerfile in the project root to enable containerization and deployment.

Core Features & Use Cases

  • Base image: Ubuntu Node.js 22 LTS from Azure Container Registry
  • Quality checks: Runs lint, stylelint, and unit tests during build
  • Nginx: Installs and configures nginx for serving static files
  • Security: Runs as non-root user (nodejs_svc)
  • Port: Exposes 8080
  • Optimization: Cleans apt cache to reduce image size

Quick Start

Generate a Dockerfile in the project root and review the resulting Dockerfile.

Frequently Asked Questions about docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Dockerfile for a Vue.js application?

To generate a Dockerfile for a Vue.js application, this skill automates creation in the project root. It configures an Ubuntu Node.js 22 LTS base image, runs lint and unit tests, and sets up nginx to serve the built static files.

Does the generated Dockerfile configure nginx for serving Vue.js static files?

Yes, the generated Dockerfile installs and configures nginx for serving static files. It exposes port 8080 and ensures the application runs securely as a non-root user named nodejs_svc.

Can I run lint, stylelint, and unit tests during the Docker build process?

Yes, you can run lint, stylelint, and unit tests during the Docker build process. The generated Dockerfile includes pre-build validation steps to execute these quality checks before deploying the application.

What's the best way to containerize a Vue.js app with a custom base image and authentication?

The best way to containerize a Vue.js app with authentication is using a template with a conditional authentication snippet. This skill applies an Ubuntu Node.js 22 LTS base image from Azure Container Registry and an npm install step.

How does the Docker build process handle component library authentication?

The Docker build process handles component library authentication through a conditional authentication snippet within the Dockerfile template. This snippet integrates with the npm install step to securely fetch required dependencies.

Why does the generated Dockerfile run as a non-root user and clean the apt cache?

The generated Dockerfile runs as a non-root user to enhance container security, and cleans the apt cache to reduce the final Docker image size for deployment optimization.