FROM node:18-alpine # Simple, minimal dependencies RUN apk add --no-cache \ python3 py3-pip git curl bash coreutils nginx \ pnpm WORKDIR /app COPY package*.json ./ RUN npm install COPY . . COPY nginx.conf /etc/nginx/http.d/default.conf RUN mkdir -p /var/log/nginx /var/lib/nginx/tmp /tmp/sandboxes EXPOSE 7860 CMD sh -c "nginx -g 'daemon off;' & node server.js"