jairoco10/vue

By jairoco10

Updated 7 months ago

Base image for Vue.js apps with Node.js and Nginx preconfigured.

Image
Web Servers

28

Vue.js Base Image

This image provides a pre-configured environment for building and serving Vue.js applications. It includes Node.js for development and Nginx for production deployment.

Features

  • Node.js: For building Vue.js applications.
  • Nginx: For serving the built Vue.js app in production.

How to Use

Dockerfile Example

Create a Dockerfile in your Vue.js project directory:

version: '3.8'

services:
  vue-app:
    image: jairoco10/vue:1.1.alpha
    container_name: vue-app
    ports:
      - "80:80"
    volumes:
      - ./app:/app
    environment:
      - NODE_ENV=production

Build and Run

  1. Build your Docker image:

    docker build -t my-vue-app .
    
  2. Start your services using Docker Compose:

    docker-compose up -d
    

Docker Pull Command

docker pull jairoco10/vue