fixes old node version which is vulnerable to https://www.cve.org/CVERecord?id=CVE-2022-2309 Introduced through: node@18 -> libxml2@2.9.14+dfsg-1.2 Fix: Upgrade to libxml2@2.9.14+dfsg-1.3~deb12u1 <- node:20.4-bookworm-slim
7 lines
119 B
Docker
7 lines
119 B
Docker
FROM node:20.4-bookworm-slim
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm ci
|
|
EXPOSE 3000
|
|
CMD ["npm", "start"]
|