Fixing docker container
This commit is contained in:
parent
b3eab0d6c9
commit
b7aeee4706
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user