FROM node:lts-alpine3.17

# add project files to /app
ADD ./mqtt /app
ADD ./common /app
WORKDIR /app

# install node dependencies
RUN npm install && npx prisma generate

ENTRYPOINT ["/app/entrypoint.sh"]
