use node 20

This commit is contained in:
Chris Grimmett 2024-04-08 23:07:45 -08:00
parent b18d3b29c0
commit 15d3add6a1
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
lts/hydrogen lts/iron

View File

@ -81,7 +81,7 @@
"uuid": false "uuid": false
}, },
"engines": { "engines": {
"node": ">=14.19.1 <=19.x.x", "node": "20.x.x",
"npm": ">=6.0.0" "npm": ">=6.0.0"
}, },
"license": "MIT", "license": "MIT",

View File

@ -7,9 +7,9 @@ RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev l
COPY ./packages/strapi/pnpm-lock.yaml ./packages/strapi/package.json ./ COPY ./packages/strapi/pnpm-lock.yaml ./packages/strapi/package.json ./
RUN pnpm install RUN pnpm install
COPY ./packages/strapi . COPY ./packages/strapi .
ENV NODE_ENV=production
RUN pnpm run build RUN pnpm run build
RUN chown -R node:node /app RUN chown -R node:node /app
USER node USER node
ENV NODE_ENV=production
ENTRYPOINT ["pnpm"] ENTRYPOINT ["pnpm"]
CMD ["run", "start"] CMD ["run", "start"]