FROM node:20-slim WORKDIR /app COPY frontend/package*.json ./ RUN npm ci --ignore-scripts COPY frontend/ . RUN npm run build # adapter-static outputs to build/ EXPOSE 80 CMD ["node", "-e", "\ const h=require('http'),fs=require('fs'),url=require('url'),path=require('path');\ const root='build';\ const types={'/':'application/json','js':'application/javascript','css':'text/css','html':'text/html','json':'application/json','svg':'image/svg+xml','png':'image/png','jpg':'image/jpeg','jpeg':'image/jpeg','ico':'image/x-icon','woff2':'font/woff2','woff':'font/woff','ttf':'font/ttf','otf':'font/otf','map':'application/json'};\ h.createServer((req,res)=>{const p=url.parse(req.url||'/').pathname||'/';const fp=path.join(root,p==='/'?'/index.html':p);try{const s=fs.statSync(fp);if(s.isDirectory()){fs.readFile(path.join(fp,'index.html'),'utf8',(e,d)=>{res.writeHead(200,{'Content-Type':'text/html'});res.end(d||'