Update dockerfile

This commit is contained in:
2026-01-28 21:27:53 +01:00
parent 297bdf26b5
commit 9077f640fe

View File

@@ -13,13 +13,13 @@ WORKDIR /app
COPY package.json package-lock.json* ./
# 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 . .
# Build the TanStack Start application (outputs to /app/.output)
RUN npm run build
RUN pnpm run build
# =========================================
# Stage 2: Run the TanStack Start Server
@@ -43,4 +43,4 @@ USER node
# Expose the application port
EXPOSE 3000
ENTRYPOINT ["node", "server/index.mjs"]
ENTRYPOINT ["node", "server/index.mjs"]