disable helmet and add esbuild

This commit is contained in:
Milo Schwartz
2024-10-06 11:13:50 -04:00
parent 282203d9f2
commit 3c69acaab7
12 changed files with 139 additions and 68 deletions

View File

@@ -2,9 +2,9 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
COPY package.json ./
RUN npm ci
RUN npm install
COPY . .
@@ -16,9 +16,9 @@ RUN apk add --no-cache curl
WORKDIR /app
COPY package*.json ./
COPY package.json ./
RUN npm ci --only=production
RUN npm install --omit=dev
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/dist ./dist