FROM node:lts
RUN npm install -g http-server
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

COPY docker/start.sh /start.sh
RUN chmod uog+rwx /start.sh

EXPOSE 8080
CMD [ "/start.sh"]