Skip to content

Commit 53a978d

Browse files
committed
Install oasdiff in Docker
1 parent 994c9a7 commit 53a978d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
FROM node:24-alpine AS base
22

3+
FROM base AS oasdiff
4+
ARG OASDIFF_VERSION=2.10.0
5+
RUN apk add --no-cache curl tar ca-certificates
6+
RUN curl -fsSL https://raw.githubusercontent.com/oasdiff/oasdiff/main/install.sh \
7+
| sh -s -- -b /usr/local/bin "v${OASDIFF_VERSION}"
8+
39
# Install dependencies only when needed
410
FROM base AS deps
511
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
@@ -46,6 +52,7 @@ RUN addgroup --system --gid 1001 nodejs
4652
RUN adduser --system --uid 1001 nextjs
4753

4854
COPY --from=builder /app/public ./public
55+
COPY --from=oasdiff /usr/local/bin/oasdiff /usr/local/bin/oasdiff
4956

5057
# Set the correct permission for prerender cache
5158
RUN mkdir .next

0 commit comments

Comments
 (0)