1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-24 15:49:42 +02:00

added new logic

This commit is contained in:
exezzz 2025-05-26 18:47:04 +03:00
parent 8bcf23278d
commit 28580e300b
9 changed files with 500 additions and 549 deletions

View file

@ -1,5 +1,5 @@
# Stage 1 - build
FROM node:16.14.0-alpine3.15 as build
FROM node:18-alpine as build
## Install build toolchain, install node deps and compile native add-ons
RUN apk add --no-cache python3 make g++ git
@ -8,9 +8,9 @@ WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install --production
##RUN yarn install --production
RUN cp -R node_modules prod_node_modules
##RUN cp -R node_modules prod_node_modules
RUN yarn install
@ -19,12 +19,12 @@ COPY . .
RUN yarn build-all
# Stage 2 - make final image
FROM node:16.14.0-alpine3.15
FROM node:18-alpine
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
COPY --from=build /usr/src/app/prod_node_modules ./node_modules
COPY --from=build /usr/src/app/node_modules ./node_modules
COPY --from=build /usr/src/app/dist ./dist
COPY --from=build /usr/src/app/public ./public