Skip to content

Commit

Permalink
Pin Node to 22.4
Browse files Browse the repository at this point in the history
This fixes our docker builds until Node fixes their issue.
  • Loading branch information
Epse committed Jul 19, 2024
1 parent 641e006 commit cc1e904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM node:22-alpine as compile
FROM node:22.4-alpine as compile
RUN apk --no-cache add curl python3 build-base
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci --include dev
COPY . .
RUN ["npx", "tsup", "src/server.ts", "src/deploy-commands.ts", "--minify"]

FROM node:22-alpine as modules
FROM node:22.4-alpine as modules
RUN apk --no-cache add curl python3 build-base
WORKDIR /usr/src/app
COPY --from=compile /usr/src/app/package*.json ./
RUN npm ci --omit dev

FROM node:22-alpine
FROM node:22.4-alpine
RUN apk --no-cache add curl
WORKDIR /usr/src/app
COPY --from=modules /usr/src/app/node_modules ./node_modules
Expand Down

0 comments on commit cc1e904

Please sign in to comment.