create static nginx docker build

This commit is contained in:
Mitchell Scott
2025-06-12 21:35:18 -06:00
parent c74a15c40c
commit 1ac514293b

View File

@@ -1,10 +1,16 @@
FROM node:24-alpine
FROM node:24-alpine AS node-builder
WORKDIR /app
# RUN npm install gulp
COPY package.json .
COPY package-lock.json .
RUN npm ci
COPY . .
CMD ["node", "index.mjs"]
RUN npm install
RUN npm run build
FROM nginx:alpine
# COPY --from=node-builder /app/server /usr/share/nginx/html
COPY --from=node-builder /app/dist /usr/share/nginx/html