Cleanup
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
FROM node:lts-alpine3.22 AS base
|
||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s --retries=5 \
|
||||
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
|
||||
@ -14,6 +17,9 @@ COPY dev-entrypoint.sh /entrypoint.sh
|
||||
COPY .env.example /app/backend/.env
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENV NODE_ENV=development
|
||||
WORKDIR /app
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
EXPOSE 3333
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
|
||||
|
@ -4,7 +4,6 @@ cd /app/backend
|
||||
echo "starting up..."
|
||||
node ace generate:key
|
||||
|
||||
|
||||
# Check for pending migrations by parsing output
|
||||
PENDING_MIGRATIONS=$(node ace migration:status | grep -ic 'pending')
|
||||
|
@ -12,6 +12,6 @@ const UsersController = () => import('#controllers/users_controller')
|
||||
router.get('users', [UsersController, 'index'])
|
||||
router.get('/', async () => {
|
||||
return {
|
||||
hello: 'WORLD',
|
||||
hello: 'world',
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user