Update frontend Dockerfile

This commit is contained in:
dvirlabs 2025-12-05 11:25:03 +02:00
parent 30986fdf40
commit c43c33db37
2 changed files with 5 additions and 4 deletions

View File

@ -1,13 +1,13 @@
# Build stage # Build stage
FROM node:20-alpine AS builder FROM node:18-alpine AS builder
WORKDIR /app WORKDIR /app
# Copy package files # Copy package files
COPY package.json package-lock.json* ./ COPY package*.json ./
# Install dependencies # Install dependencies
RUN npm ci RUN npm ci --prefer-offline --no-audit
# Copy source code # Copy source code
COPY . . COPY . .
@ -16,7 +16,7 @@ COPY . .
RUN npm run build RUN npm run build
# Production stage # Production stage
FROM node:20-alpine FROM node:18-alpine
WORKDIR /app WORKDIR /app

View File

@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
assetsInclude: ['**/*.svg'],
}) })