Containerfile 943 B

1234567891011121314151617181920212223242526272829
  1. FROM debian:bookworm-slim
  2. RUN apt-get update && \
  3. apt-get install -y --no-install-recommends \
  4. curl ca-certificates bash git build-essential python3 libatomic1 && \
  5. rm -rf /var/lib/apt/lists/*
  6. # Install mise
  7. ENV MISE_YES=1
  8. RUN curl https://mise.run | sh
  9. ENV PATH="/root/.local/bin:$PATH"
  10. # Pre-install node and bun
  11. RUN mise use -g node@latest bun@latest
  12. # Copy the packed tarball and install via both package managers
  13. COPY tobilu-qmd-*.tgz /tmp/
  14. RUN mise exec node@latest -- npm install -g /tmp/tobilu-qmd-*.tgz
  15. RUN mise exec bun@latest -- bun install -g /tmp/tobilu-qmd-*.tgz
  16. # Copy test project (src + test + configs) and install deps
  17. COPY test-src/ /opt/qmd/
  18. RUN cd /opt/qmd && mise exec node@latest -- npm install 2>/dev/null
  19. RUN cd /opt/qmd && mise exec bun@latest -- bun install 2>/dev/null || true
  20. # Put everything on PATH
  21. ENV PATH="/root/.bun/bin:/root/.local/share/mise/shims:/root/.local/bin:$PATH"
  22. CMD ["bash"]