Skip to content

Commit

Permalink
fix(docker): use alpine 3.20 instead of 3.21 so prisma can find openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Dec 20, 2024
1 parent 270fb21 commit addd5e8
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
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM node:18-alpine AS builder
FROM node:22-alpine3.20 AS builder
WORKDIR /build
# install python etc so node-gyp works for the optional dependencies
RUN apk add --no-cache make gcc g++ python3
Expand All @@ -13,7 +13,7 @@ RUN chmod +x ./scripts/start.sh
RUN CI=true pnpm install --prod --frozen-lockfile
COPY --link . .

FROM node:18-alpine AS runner
FROM node:22-alpine3.20 AS runner
RUN apk --no-cache add curl \
&& adduser --disabled-password --home /home/container container \
&& mkdir /app \
Expand Down

0 comments on commit addd5e8

Please sign in to comment.