We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edc7ae commit d336b7fCopy full SHA for d336b7f
Dockerfile
@@ -3,15 +3,13 @@ FROM node:18-alpine AS deps
3
WORKDIR /app
4
5
# Install dependencies needed for build
6
-RUN apk add --no-cache libc6-compat
+RUN apk add --no-cache libc6-compat git
7
8
# Copy package files
9
COPY package*.json ./
10
11
-# Install dependencies with npm
12
-RUN apk add --no-cache npm && \
13
- npm ci && \
14
- apk del npm
+# Install dependencies (without husky)
+RUN npm ci --ignore-scripts
15
16
# Stage 2: Builder
17
FROM node:18-alpine AS builder
@@ -24,6 +22,7 @@ COPY . .
24
22
# Set environment variables for build
25
23
ENV NEXT_TELEMETRY_DISABLED 1
26
ENV NODE_ENV production
+ENV HUSKY 0
27
28
# Build application
29
RUN npm run build
0 commit comments