diff --git a/Dockerfile b/Dockerfile index 810300f..170c563 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,12 @@ RUN yarn install COPY . . RUN yarn build -RUN npm install -g serve -EXPOSE 80 -CMD ["serve /app/dist -p 80"] +FROM node:22-alpine +RUN npm i -g serve +WORKDIR /app +COPY --from=build /app/dist ./dist +CMD ["serve", "-s", "dist", "-p", "80"] # #FROM nginx:stable-alpine #