Compare commits

..

2 Commits

Author SHA1 Message Date
2ad1231d83 Add healthcheck and update node version 2025-06-04 21:06:39 -04:00
9a712a096b Fix typo 2025-06-04 21:06:23 -04:00
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,6 @@
FROM node:22-alpine AS base
FROM node:lts-alpine3.22 AS base
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s --retries=5 \
CMD sh -c 'wget --no-verbose --tries=1 --spider http://127.0.0.1:3333 || exit 1'
# All deps stage
FROM base AS deps
@ -32,4 +34,5 @@ WORKDIR /app
COPY --from=production-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app
EXPOSE 8080
CMD ["node", "./bin/server.js"]

View File

@ -8,7 +8,7 @@ services:
volumes:
- ./:/app
- node_modules:/app/node_modules
command: /bin/sh -c "node ace migration:run --force || node ace serve --watch"
command: /bin/sh -c "node ace migration:run --force && node ace serve --watch"
depends_on:
db:
condition: service_healthy