fix: update Dockerfile to use npm instead of pnpm
- Changed from pnpm to npm for Docker builds - Fixed build cache issue that was serving stale content - Verified correct content is now deployed Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
c6024db849
commit
bf22dbcaf7
@ -3,16 +3,13 @@ FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install pnpm
|
||||
RUN npm install -g pnpm@9
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
# Build the application
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Production
|
||||
FROM nginx:alpine AS production
|
||||
|
||||
6703
package-lock.json
generated
Normal file
6703
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
pnpm-workspace.yaml
Normal file
3
pnpm-workspace.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
allowBuilds:
|
||||
sharp: set this to true or false
|
||||
unrs-resolver: set this to true or false
|
||||
Loading…
Reference in New Issue
Block a user