use node 20
This commit is contained in:
parent
b18d3b29c0
commit
15d3add6a1
|
@ -1 +1 @@
|
|||
lts/hydrogen
|
||||
lts/iron
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
"uuid": false
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.19.1 <=19.x.x",
|
||||
"node": "20.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
|
|
@ -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 ./
|
||||
RUN pnpm install
|
||||
COPY ./packages/strapi .
|
||||
ENV NODE_ENV=production
|
||||
RUN pnpm run build
|
||||
RUN chown -R node:node /app
|
||||
USER node
|
||||
ENV NODE_ENV=production
|
||||
ENTRYPOINT ["pnpm"]
|
||||
CMD ["run", "start"]
|
Loading…
Reference in New Issue