node-utils/Dockerfile
ztimson 9f71f97833
Some checks failed
Publish Library / Build NPM Project (push) Failing after 18s
Publish Library / Tag Version (push) Has been skipped
Publish Library / Publish CDN & Docs (push) Has been skipped
init
2024-11-29 17:57:07 -05:00

14 lines
291 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
COPY --from=build /app/docs /usr/share/nginx/html