Skip to content

Commit

Permalink
Upgrade to latest node lts version (#61)
Browse files Browse the repository at this point in the history
* Upgrade to latest node lts version to fix problems

* Install canvas dependencies
  • Loading branch information
niklhut authored Dec 5, 2024
1 parent 37c6c8f commit af11112
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
FROM node:16 AS build
FROM node:22 AS build

# Install system dependencies for `canvas`
RUN apt-get update && apt-get install -y \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build
# EXPOSE 3001

# Run the app
CMD [ "node", "dist/index.js" ]

0 comments on commit af11112

Please sign in to comment.