FROM node:current-alpine
EXPOSE 3000

COPY . /app
WORKDIR app

HEALTHCHECK --start-period=5s CMD  wget --no-verbose --tries=1 --spider http://localhost:3000/fibonacci?number=1 || exit 1

RUN ["npm", "install"]
ENTRYPOINT ["npm", "start"]
