Update dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user