Skip to content

Commit

Permalink
fix: Handle correct installation and build
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung committed Mar 1, 2024
1 parent 91e5b3e commit 9602143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /docs
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* ./

RUN npm ci --force
RUN npm install --force

# Rebuild the source code only when needed
FROM base AS builder
Expand All @@ -24,7 +24,7 @@ COPY . .

ENV NEXT_TELEMETRY_DISABLED 1

RUN yarn build --no-lint
RUN npm run build --no-lint

# Production image, copy all the files and run next
FROM base AS runner
Expand Down

0 comments on commit 9602143

Please sign in to comment.