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