FROM node:18-alpine

RUN npm install --unsafe-perm -g \
    node-sass \
#    grunt-cli \
#    grunt sass \
#    grunt-contrib-sass \
#    grunt-contrib-concat \
#    grunt-contrib-uglify-es \
#    grunt-contrib-watch \
#    grunt-contrib-copy  \
    cross-env

# Globally node-sass from NPM
#RUN apk add --no-cache su-exec && \
#    addgroup avocalix && \
#    adduser -D -h /home -s /bin/sh -G avocalix avocalix

WORKDIR /app

COPY ./package*.json ./
RUN npm install

CMD [ "npm", "run", "watch"]
