<gh_stars>100-1000
FROM node:14.15-alpine3.10
RUN apk update && apk add bash
RUN apk add git
RUN apk add  ffmpeg
RUN apk add imagemagick

ENV NODE_ENV=production

WORKDIR /pisignage-server

COPY ["package.json", "package-lock.json*", "./"]

#RUN rm -rf node_modues package-lock.json

RUN npm install --production

COPY . .
RUN chmod +x ./wait-for-it.sh

CMD [ "./wait-for-it.sh", "mongo:27017", "--", "node", "server.js"]