fix: I dunno, I'm making git server changes
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
# Production Dockerfile for MotoVaultPro Frontend
|
||||
# Uses mirrored base images from GitLab Container Registry
|
||||
|
||||
# Stage 1: Base with dependencies
|
||||
FROM node:lts-alpine AS base
|
||||
# Build argument for registry (defaults to GitLab mirrors, falls back to Docker Hub)
|
||||
ARG REGISTRY_MIRRORS=registry.motovaultpro.com/mirrors
|
||||
|
||||
# Stage 1: Base with dependencies
|
||||
FROM ${REGISTRY_MIRRORS}/node:20-alpine AS base
|
||||
RUN apk add --no-cache dumb-init curl
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
@@ -29,7 +33,7 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Stage 4: Production stage with nginx
|
||||
FROM nginx:alpine AS production
|
||||
FROM ${REGISTRY_MIRRORS}/nginx:alpine AS production
|
||||
|
||||
# Add curl for healthchecks
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
Reference in New Issue
Block a user