use node 20
This commit is contained in:
parent
b18d3b29c0
commit
15d3add6a1
|
@ -1 +1 @@
|
||||||
lts/hydrogen
|
lts/iron
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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"]
|
Loading…
Reference in New Issue