mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-16 11:31:04 +02:00
chore: bump ui image to node 22
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
f1bc19139b
commit
5da57b3fa5
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# Multi-stage build
|
# Multi-stage build
|
||||||
# Stage 1: Dependencies
|
# Stage 1: Dependencies
|
||||||
FROM node:20-alpine AS deps
|
FROM node:22-alpine AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install Python and build dependencies for native modules
|
# Install Python and build dependencies for native modules
|
||||||
|
|
@ -15,7 +15,7 @@ COPY ui/package*.json ./
|
||||||
RUN --mount=type=cache,target=/root/.npm npm ci
|
RUN --mount=type=cache,target=/root/.npm npm ci
|
||||||
|
|
||||||
# Stage 2: Builder
|
# Stage 2: Builder
|
||||||
FROM node:20-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install libc6-compat for native modules in builder stage too
|
# Install libc6-compat for native modules in builder stage too
|
||||||
|
|
@ -49,7 +49,7 @@ RUN npm run build && \
|
||||||
rm -rf /tmp/* /root/.npm /root/.next/cache
|
rm -rf /tmp/* /root/.npm /root/.next/cache
|
||||||
|
|
||||||
# Stage 3: Runner (production image)
|
# Stage 3: Runner (production image)
|
||||||
FROM node:20-alpine AS runner
|
FROM node:22-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Environment variables will be provided by docker-compose
|
# Environment variables will be provided by docker-compose
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue