From 1ac514293baf3d766deb96f199f18a8848829ea4 Mon Sep 17 00:00:00 2001 From: Mitchell Scott <10804314+rmitchellscott@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:35:18 -0600 Subject: [PATCH] create static nginx docker build --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9c1c4c..5583756 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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