FROM node

RUN apt update && apt install -y curl

COPY . /app

WORKDIR /app

RUN npm install

EXPOSE 3000

HEALTHCHECK --retries=3 --start-period=5s --interval=20s --timeout=3s CMD [[ "$(curl -o /dev/null -s -w "%{http_code}\n" http://localhost:3000/)" == "200" ]]

CMD node index.js