From 3c74c2e686c0b649a769321735d0922f2eddd142 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 7 May 2026 12:25:46 +0300 Subject: [PATCH] Fix Docker Node version for Cloud Run build --- Dockerfile | 5 ++--- Dockerfile.dev | 10 +++++----- app-shell/Dockerfile | 2 +- backend/Dockerfile | 2 +- frontend/Dockerfile | 4 ++-- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index affcee8..59c8423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.15.1-alpine AS builder +FROM node:20.19.0-alpine AS builder RUN apk add --no-cache git WORKDIR /app COPY frontend/package.json frontend/yarn.lock ./ @@ -6,7 +6,7 @@ RUN yarn install --pure-lockfile COPY frontend . RUN yarn build -FROM node:20.15.1-alpine +FROM node:20.19.0-alpine WORKDIR /app COPY backend/package.json backend/yarn.lock ./ RUN yarn install --pure-lockfile @@ -14,4 +14,3 @@ COPY backend . COPY --from=builder /app/build /app/public CMD ["yarn", "start"] - diff --git a/Dockerfile.dev b/Dockerfile.dev index a8353d5..92d659a 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,24 +1,24 @@ # Base image for Node.js dependencies -FROM node:20.15.1-alpine AS frontend-deps +FROM node:20.19.0-alpine AS frontend-deps RUN apk add --no-cache git WORKDIR /app/frontend COPY frontend/package.json frontend/yarn.lock ./ RUN yarn install --pure-lockfile -FROM node:20.15.1-alpine AS backend-deps +FROM node:20.19.0-alpine AS backend-deps RUN apk add --no-cache git WORKDIR /app/backend COPY backend/package.json backend/yarn.lock ./ RUN yarn install --pure-lockfile -FROM node:20.15.1-alpine AS app-shell-deps +FROM node:20.19.0-alpine AS app-shell-deps RUN apk add --no-cache git WORKDIR /app/app-shell COPY app-shell/package.json app-shell/yarn.lock ./ RUN yarn install --pure-lockfile # Nginx setup and application build -FROM node:20.15.1-alpine AS build +FROM node:20.19.0-alpine AS build RUN apk add --no-cache git nginx curl RUN apk add --no-cache lsof procps RUN yarn global add concurrently @@ -82,4 +82,4 @@ CMD ["sh", "-c", "\ done && \ echo 'Backend is up. Starting app_shell for Git check...' && \ yarn --cwd /app/app-shell start && \ - wait $NGINX_PID"] \ No newline at end of file + wait $NGINX_PID"] diff --git a/app-shell/Dockerfile b/app-shell/Dockerfile index eb79c5d..fc6a6ae 100644 --- a/app-shell/Dockerfile +++ b/app-shell/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.15.1-alpine +FROM node:20.19.0-alpine RUN apk update && apk add bash # Create app directory diff --git a/backend/Dockerfile b/backend/Dockerfile index 581cb98..4f9db34 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.15.1-alpine +FROM node:20.19.0-alpine RUN apk update && apk add bash # Create app directory diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 56e10d0..1f8a793 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.15.1-alpine +FROM node:20.19.0-alpine # Create app directory WORKDIR /usr/src/app @@ -16,4 +16,4 @@ RUN yarn install COPY . . EXPOSE 3000 -CMD [ "yarn", "dev" ] \ No newline at end of file +CMD [ "yarn", "dev" ]