From a57a8656be3c65ffb4492657c05895a3c7761b89 Mon Sep 17 00:00:00 2001 From: anibilag Date: Thu, 17 Jul 2025 13:34:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.5.8=20?= =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=88=D0=BB=D0=B8=20=D0=BD=D0=B0=20Nod?= =?UTF-8?q?e.js=2020=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a050bc..8499268 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Multi-stage build for production -FROM node:18-alpine AS frontend-build +FROM node:20-alpine AS frontend-build WORKDIR /app/frontend COPY package*.json ./ @@ -9,7 +9,7 @@ COPY . . RUN npm run build # Backend build stage -FROM node:18-alpine AS backend-build +FROM node:20-alpine AS backend-build WORKDIR /app/backend COPY package*.json ./ @@ -19,7 +19,7 @@ COPY server/ ./server/ COPY package.json ./ # Production stage -FROM node:18-alpine AS production +FROM node:20-alpine AS production WORKDIR /app @@ -37,8 +37,7 @@ COPY --from=frontend-build /app/frontend/dist ./public RUN mkdir -p uploads # Create non-root user -RUN addgroup -g 1001 -S nodejs && \ - adduser -S nodejs -u 1001 +RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001 # Change ownership of app directory RUN chown -R nodejs:nodejs /app diff --git a/package.json b/package.json index f112a9c..7aa1d11 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.5.7", + "version": "0.5.8", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"",