Updated image to node:lts-alpine
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Production Dockerfile for MotoVaultPro Backend
|
# Production Dockerfile for MotoVaultPro Backend
|
||||||
|
|
||||||
# Stage 1: Build stage
|
# Stage 1: Build stage
|
||||||
FROM node:20-alpine AS builder
|
FROM node:lts-alpine AS builder
|
||||||
|
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
RUN apk add --no-cache dumb-init git curl
|
RUN apk add --no-cache dumb-init git curl
|
||||||
@@ -22,7 +22,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Stage 2: Production runtime
|
# Stage 2: Production runtime
|
||||||
FROM node:20-alpine AS production
|
FROM node:lts-alpine AS production
|
||||||
|
|
||||||
# Install runtime dependencies only
|
# Install runtime dependencies only
|
||||||
RUN apk add --no-cache dumb-init curl
|
RUN apk add --no-cache dumb-init curl
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- node:20-alpine
|
- node:lts-alpine
|
||||||
- nginx:alpine
|
- nginx:alpine
|
||||||
args:
|
args:
|
||||||
VITE_AUTH0_DOMAIN: ${VITE_AUTH0_DOMAIN:-motovaultpro.us.auth0.com}
|
VITE_AUTH0_DOMAIN: ${VITE_AUTH0_DOMAIN:-motovaultpro.us.auth0.com}
|
||||||
@@ -89,7 +89,7 @@ services:
|
|||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- node:20-alpine
|
- node:lts-alpine
|
||||||
container_name: mvp-backend
|
container_name: mvp-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ MotoVaultPro is a single-tenant vehicle management application built with a **6-
|
|||||||
|
|
||||||
### Frontend (React SPA)
|
### Frontend (React SPA)
|
||||||
- **Technology**: React 18 + Vite + TypeScript
|
- **Technology**: React 18 + Vite + TypeScript
|
||||||
- **Build**: Multi-stage Dockerfile (node:20-alpine → nginx:alpine)
|
- **Build**: Multi-stage Dockerfile (node:lts-alpine → nginx:alpine)
|
||||||
- **Port**: 3000 (internal)
|
- **Port**: 3000 (internal)
|
||||||
- **Networks**: frontend
|
- **Networks**: frontend
|
||||||
- **Dependencies**: Backend (API calls)
|
- **Dependencies**: Backend (API calls)
|
||||||
@@ -147,7 +147,7 @@ MotoVaultPro is a single-tenant vehicle management application built with a **6-
|
|||||||
|
|
||||||
### Backend (Node.js API)
|
### Backend (Node.js API)
|
||||||
- **Technology**: Node.js 20 + Fastify + TypeScript
|
- **Technology**: Node.js 20 + Fastify + TypeScript
|
||||||
- **Build**: Production build in node:20-alpine
|
- **Build**: Production build in node:lts-alpine
|
||||||
- **Port**: 3001 (internal)
|
- **Port**: 3001 (internal)
|
||||||
- **Networks**: backend, database
|
- **Networks**: backend, database
|
||||||
- **Dependencies**: PostgreSQL, Redis, Platform
|
- **Dependencies**: PostgreSQL, Redis, Platform
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Production Dockerfile for MotoVaultPro Frontend
|
# Production Dockerfile for MotoVaultPro Frontend
|
||||||
|
|
||||||
# Stage 1: Base with dependencies
|
# Stage 1: Base with dependencies
|
||||||
FROM node:20-alpine AS base
|
FROM node:lts-alpine AS base
|
||||||
RUN apk add --no-cache dumb-init curl
|
RUN apk add --no-cache dumb-init curl
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|||||||
Reference in New Issue
Block a user