Skip to content

Commit d336b7f

Browse files
committed
chore: update dockerfile
1 parent 7edc7ae commit d336b7f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ FROM node:18-alpine AS deps
33
WORKDIR /app
44

55
# Install dependencies needed for build
6-
RUN apk add --no-cache libc6-compat
6+
RUN apk add --no-cache libc6-compat git
77

88
# Copy package files
99
COPY package*.json ./
1010

11-
# Install dependencies with npm
12-
RUN apk add --no-cache npm && \
13-
npm ci && \
14-
apk del npm
11+
# Install dependencies (without husky)
12+
RUN npm ci --ignore-scripts
1513

1614
# Stage 2: Builder
1715
FROM node:18-alpine AS builder
@@ -24,6 +22,7 @@ COPY . .
2422
# Set environment variables for build
2523
ENV NEXT_TELEMETRY_DISABLED 1
2624
ENV NODE_ENV production
25+
ENV HUSKY 0
2726

2827
# Build application
2928
RUN npm run build

0 commit comments

Comments
 (0)