Fixing docker container
All checks were successful
Build / Build NPM Project (push) Successful in 25s
Build / Tag Version (push) Successful in 7s
Build / Publish Documentation (push) Successful in 25s

This commit is contained in:
Zakary Timson 2024-10-01 15:39:24 -04:00
parent b3eab0d6c9
commit b7aeee4706

View File

@ -4,7 +4,8 @@ FROM node:alpine as build
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
COPY . . 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 # Use Nginx to serve
FROM nginx:1.23-alpine FROM nginx:1.23-alpine