build improvements

This commit is contained in:
Schneider Roland
2025-02-23 14:57:49 +01:00
parent 4d239f7c7a
commit 5c3fe39074
50 changed files with 1672 additions and 212 deletions

View File

@@ -7,11 +7,11 @@ ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
COPY package.json package-lock.json ./
RUN npm install -g node-gyp
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production --debug
ENV PATH=/opt/node_modules/.bin:$PATH
WORKDIR /opt/app
COPY . .
RUN npm run build
RUN npm run build --debug
# Creating final production image
FROM node:18-alpine