Update dockerfile
This commit is contained in:
@@ -13,13 +13,13 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
|
|
||||||
# Install project dependencies using npm ci (ensures a clean, reproducible install)
|
# Install project dependencies using npm ci (ensures a clean, reproducible install)
|
||||||
RUN npm ci
|
RUN pnpm install
|
||||||
|
|
||||||
# Copy the rest of the application source code into the container
|
# Copy the rest of the application source code into the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the TanStack Start application (outputs to /app/.output)
|
# Build the TanStack Start application (outputs to /app/.output)
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# =========================================
|
# =========================================
|
||||||
# Stage 2: Run the TanStack Start Server
|
# Stage 2: Run the TanStack Start Server
|
||||||
@@ -43,4 +43,4 @@ USER node
|
|||||||
# Expose the application port
|
# Expose the application port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENTRYPOINT ["node", "server/index.mjs"]
|
ENTRYPOINT ["node", "server/index.mjs"]
|
||||||
|
|||||||
Reference in New Issue
Block a user