Revert changes to dockerfile
This commit is contained in:
+2
-4
@@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
FROM node:20-bookworm AS builder
|
FROM node:20-bookworm AS builder
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl \
|
RUN apt-get update && apt-get install -y --no-install-recommends curl
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN npm install -g pnpm@latest
|
RUN npm install -g pnpm@latest
|
||||||
|
|
||||||
@@ -31,5 +30,4 @@ WORKDIR /app
|
|||||||
# Copy only the built output - no source, no .env, no dev deps
|
# Copy only the built output - no source, no .env, no dev deps
|
||||||
COPY --from=builder /app/build ./build
|
COPY --from=builder /app/build ./build
|
||||||
|
|
||||||
# Serve in SPA mode
|
CMD ["npx", "serve", "build"]
|
||||||
CMD ["npx", "serve", "-s", "build"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user