diff --git a/Dockerfile b/Dockerfile index afbcdcc..0b13d9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,10 @@ RUN npm ci --prefix server COPY . . ARG NEXT_PUBLIC_FIREBASE_CONFIG -ARG API_BASE_PATH ARG DATABASE_URL +ENV API_BASE_PATH RUN npm run build -CMD npm start +HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost:$PORT/$API_BASE_PATH/health && curl -f http://localhost:$PORT || exit 1 + +CMD ["npm", "start"]