Optimize container size

This commit is contained in:
Owen 2025-03-08 18:11:39 -05:00
parent c93b36c757
commit d22dcfb464
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
5 changed files with 14871 additions and 11 deletions

View file

@ -22,7 +22,6 @@ next-env.d.ts
*.log *.log
.machinelogs*.json .machinelogs*.json
*-audit.json *-audit.json
package-lock.json
install/ install/
bruno/ bruno/
LICENSE LICENSE

1
.gitignore vendored
View file

@ -23,7 +23,6 @@ next-env.d.ts
.machinelogs*.json .machinelogs*.json
*-audit.json *-audit.json
migrations migrations
package-lock.json
tsconfig.tsbuildinfo tsconfig.tsbuildinfo
config/config.yml config/config.yml
dist dist

View file

@ -2,9 +2,8 @@ FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json package-lock.json ./
RUN npm ci
RUN npm install
COPY . . COPY . .
@ -14,15 +13,16 @@ RUN npm run build
FROM node:20-alpine AS runner FROM node:20-alpine AS runner
RUN apk add --no-cache curl
WORKDIR /app WORKDIR /app
COPY package.json ./ # Curl used for the health checks
RUN apk add --no-cache curl
RUN npm install --omit=dev COPY package.json package-lock.json ./
RUN npm ci --only=production && npm cache clean --force
COPY --from=builder /app/.next ./.next COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/init ./dist/init COPY --from=builder /app/init ./dist/init

View file

@ -2,7 +2,8 @@
const nextConfig = { const nextConfig = {
eslint: { eslint: {
ignoreDuringBuilds: true, ignoreDuringBuilds: true,
} },
output: "standalone"
}; };
export default nextConfig; export default nextConfig;

14861
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff