Update Dockerfile to Node 20 with canvas dependencies
This commit is contained in:
parent
ebc9bd283f
commit
a4549afd2a
1 changed files with 12 additions and 1 deletions
|
|
@ -1,7 +1,18 @@
|
||||||
FROM node:18-alpine
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install dependencies needed for canvas
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
python3 \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
cairo-dev \
|
||||||
|
jpeg-dev \
|
||||||
|
pango-dev \
|
||||||
|
giflib-dev \
|
||||||
|
pixman-dev
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue