FROM node:20-alpine

COPY ./code /app
COPY ./config /config
RUN mkdir -p /data && \
    apk --no-cache add curl

HEALTHCHECK CMD curl -f http://localhost:8088/health || exit 1

EXPOSE 8088

CMD [ "node", "/app/index.js" ]
