more fixes

This commit is contained in:
Andrey Kondratev
2025-08-28 17:42:49 +05:00
parent 8213ca33e2
commit 3c615acaeb
14 changed files with 695 additions and 239 deletions

View File

@@ -8,16 +8,16 @@ COPY package*.json ./
COPY yarn.lock* ./
# Install all dependencies (including dev for build)
RUN npm install && npm cache clean --force
RUN yarn install --frozen-lockfile && yarn cache clean
# Copy source code
COPY . .
# Build the application
RUN npm run build
RUN yarn build
# Clean dev dependencies
RUN npm prune --production
RUN yarn install --production --frozen-lockfile
# Production stage
FROM node:18-alpine AS production