faster smaller

This commit is contained in:
Andrey Kondratev
2025-11-09 18:48:57 +05:00
parent ca27a2b3f0
commit 6db48b16a7
11 changed files with 470 additions and 76 deletions

View File

@@ -13,8 +13,8 @@ RUN yarn install --frozen-lockfile && yarn cache clean
# Copy source code
COPY . .
# Build the application
RUN yarn build
# Build the application with minification
RUN yarn build:prod
# Clean dev dependencies
RUN yarn install --production --frozen-lockfile
@@ -56,4 +56,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })"
# Start the application
CMD ["node", "dist/server.js"]
CMD ["node", "dist/server.js"]