Files
utils/Dockerfile
ztimson 15ac52b6a0
Some checks failed
Build / Publish Docs (push) Failing after 16s
Build / Build NPM Project (push) Failing after 54s
Build / Tag Version (push) Has been skipped
added fast-xml-parser for testing
2026-04-04 18:18:24 -04:00

16 lines
305 B
Docker

# Build application
FROM node:alpine as build
RUN mkdir /app
WORKDIR /app
COPY . .
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
RUN npm i fast-xml-parser
COPY --from=build /app/docs /usr/share/nginx/html