FROM node:20-slim WORKDIR /app COPY frontend/package*.json ./ RUN npm ci --ignore-scripts COPY frontend/ . # Build the SvelteKit app (stub for Gate B — will be updated when SvelteKit scaffolds) # For now, copy a stub HTML page. Vite build runs in production mode later. RUN mkdir -p build && \ echo 'SlabUploader

SlabUploader — coming soon

SvelteKit app stub. Update this Dockerfile when the SvelteKit app is scaffolded.

' > build/index.html EXPOSE 80 CMD ["node", "-e", "const h=require('http'),fs=require('fs'),url=require('url');h.createServer((req,res)=>{const f='build/index.html';res.writeHead(200,{'Content-Type':'text/html'}).end(fs.readFileSync(f))}).listen(80);console.log('frontend on :80')"]