Update dockerfile

This commit is contained in:
2026-01-28 21:31:43 +01:00
parent 9077f640fe
commit 4e99b144ea

View File

@@ -1,10 +1,13 @@
# ========================================= # =========================================
# Stage 1: Build the TanStack Start Application # Stage 1: Build the TanStack Start Application
# ========================================= # =========================================
ARG NODE_VERSION=24.12.0-alpine ARG NODE_VERSION=24.12.0-slim
# Use a lightweight Node.js image for building (customizable via ARG) # Use a lightweight Node.js image for building (customizable via ARG)
FROM node:${NODE_VERSION} AS builder FROM node:${NODE_VERSION} AS builder
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
# Set the working directory inside the container # Set the working directory inside the container
WORKDIR /app WORKDIR /app