This commit is contained in:
julien 2025-05-06 14:42:08 +02:00
parent 7b80a2a887
commit 8b3b1df0ed

View File

@ -1,13 +1,8 @@
FROM node:20
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
# Installation des dépendances système nécessaires à sharp (et puppeteer)
RUN apt-get update && apt-get install -y \
libvips-dev \
libnss3 \
libatk-bridge2.0-0 \
libxss1 \
@ -19,8 +14,15 @@ RUN apt-get update && apt-get install -y \
libxdamage1 \
libxrandr2 \
xdg-utils \
libvips-dev \
--no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/*
--no-install-recommends && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
EXPOSE 3001
CMD ["yarn", "start"]