faster smaller
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user