diff --git a/Dockerfile b/Dockerfile index 76cd41c..0a82b68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ FROM node:alpine as build RUN mkdir /app WORKDIR /app COPY . . -RUN if [ ! -d "docs" ]; then npm install && npm run docs; fi +RUN if [ ! -d "node_modules" ]; then npm i; fi && \ + if [ ! -d "dist" ]; then npm run docs; fi # Use Nginx to serve FROM nginx:1.23-alpine