FROM node:20-bookworm
LABEL authors="hq@gpio.me"

WORKDIR /app

RUN npm config set registry http://registry.npmmirror.com

RUN apt-get update \
    && apt-get install -y --no-install-recommends git curl zip python3 \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://bun.sh/install | bash \
    && ln -s /root/.bun/bin/bun /usr/local/bin/bun

RUN npm i pkg -g

ENV PATH="/root/.bun/bin:${PATH}"
