Dockerfile 563 B

12345678910111213141516171819202122232425
  1. # Build Neutralinojs desktop app binaries
  2. #
  3. # Context: repo root (see docker-compose.yml)
  4. # Output: /output/ contains dist/ artifacts
  5. FROM node:lts-alpine AS build
  6. WORKDIR /app
  7. # Copy the entire repo (context is the repo root)
  8. COPY . .
  9. WORKDIR /app/desktop-app
  10. # Setup (download binaries + prepare resources) and build all variants
  11. RUN npm run build:all
  12. # Final stage: Export the dist artifacts
  13. FROM alpine:latest
  14. WORKDIR /output
  15. COPY --from=build /app/desktop-app/dist/ .
  16. CMD ["echo", "Build artifacts are in /output. Use 'docker cp' to extract them."]