Версия 0.5.8 Перешли на Node.js 20 версии.

This commit is contained in:
anibilag 2025-07-17 13:34:11 +03:00
parent 897fa5d00d
commit a57a8656be
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Multi-stage build for production # Multi-stage build for production
FROM node:18-alpine AS frontend-build FROM node:20-alpine AS frontend-build
WORKDIR /app/frontend WORKDIR /app/frontend
COPY package*.json ./ COPY package*.json ./
@ -9,7 +9,7 @@ COPY . .
RUN npm run build RUN npm run build
# Backend build stage # Backend build stage
FROM node:18-alpine AS backend-build FROM node:20-alpine AS backend-build
WORKDIR /app/backend WORKDIR /app/backend
COPY package*.json ./ COPY package*.json ./
@ -19,7 +19,7 @@ COPY server/ ./server/
COPY package.json ./ COPY package.json ./
# Production stage # Production stage
FROM node:18-alpine AS production FROM node:20-alpine AS production
WORKDIR /app WORKDIR /app
@ -37,8 +37,7 @@ COPY --from=frontend-build /app/frontend/dist ./public
RUN mkdir -p uploads RUN mkdir -p uploads
# Create non-root user # Create non-root user
RUN addgroup -g 1001 -S nodejs && \ RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
adduser -S nodejs -u 1001
# Change ownership of app directory # Change ownership of app directory
RUN chown -R nodejs:nodejs /app RUN chown -R nodejs:nodejs /app

View File

@ -1,7 +1,7 @@
{ {
"name": "lawn-mowing-scheduler", "name": "lawn-mowing-scheduler",
"private": true, "private": true,
"version": "0.5.7", "version": "0.5.8",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "concurrently \"npm run server\" \"npm run client\"", "dev": "concurrently \"npm run server\" \"npm run client\"",