| # debian.sh --arch 'amd64' out/ 'bookworm' '@1769990400' |
| USER root |
| RUN /bin/sh -c useradd --create-home --shell /bin/bash sandbox # buildkit |
| RUN /bin/sh -c usermod -d /workspace sandbox # buildkit |
| ENV DEBIAN_FRONTEND=noninteractive |
| ARG PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client |
| ARG INSTALL_PNPM=0 |
| ARG INSTALL_BUN=0 |
| ARG BUN_INSTALL_DIR=/opt/bun |
| ARG INSTALL_BREW=1 |
| ARG BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew |
| ENV BUN_INSTALL=/opt/bun |
| ENV HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew |
| ENV HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar |
| ENV HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew |
| ENV PATH=/opt/bun/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN |6 PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client INSTALL_PNPM=0 INSTALL_BUN=0 BUN_INSTALL_DIR=/opt/bun INSTALL_BREW=1 BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew /bin/sh -c apt-get update && apt-get upgrade -y --no-install-recommends && apt-get install -y --no-install-recommends ${PACKAGES} # buildkit |
| RUN |6 PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client INSTALL_PNPM=0 INSTALL_BUN=0 BUN_INSTALL_DIR=/opt/bun INSTALL_BREW=1 BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew /bin/sh -c if [ "${INSTALL_PNPM}" = "1" ]; then npm install -g pnpm; fi # buildkit |
| RUN |6 PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client INSTALL_PNPM=0 INSTALL_BUN=0 BUN_INSTALL_DIR=/opt/bun INSTALL_BREW=1 BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew /bin/sh -c if [ "${INSTALL_BUN}" = "1" ]; then curl -fsSL https://bun.sh/install | bash; ln -sf "${BUN_INSTALL_DIR}/bin/bun" /usr/local/bin/bun; fi # buildkit |
| RUN |6 PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client INSTALL_PNPM=0 INSTALL_BUN=0 BUN_INSTALL_DIR=/opt/bun INSTALL_BREW=1 BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew /bin/sh -c if [ "${INSTALL_BREW}" = "1" ]; then if ! id -u linuxbrew >/dev/null 2>&1; then useradd -m -s /bin/bash linuxbrew; fi; mkdir -p "${BREW_INSTALL_DIR}"; chown -R linuxbrew:linuxbrew "$(dirname "${BREW_INSTALL_DIR}")"; su - linuxbrew -c "NONINTERACTIVE=1 CI=1 /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)'"; if [ ! -e "${BREW_INSTALL_DIR}/Library" ]; then ln -s "${BREW_INSTALL_DIR}/Homebrew/Library" "${BREW_INSTALL_DIR}/Library"; fi; if [ ! -x "${BREW_INSTALL_DIR}/bin/brew" ]; then echo \"brew install failed\"; exit 1; fi; ln -sf "${BREW_INSTALL_DIR}/bin/brew" /usr/local/bin/brew; fi # buildkit |
| RUN |6 PACKAGES=curl wget jq coreutils grep nodejs npm python3 git ca-certificates golang-go rustc cargo unzip pkg-config libasound2-dev build-essential file nano openssh-client INSTALL_PNPM=0 INSTALL_BUN=0 BUN_INSTALL_DIR=/opt/bun INSTALL_BREW=1 BREW_INSTALL_DIR=/home/linuxbrew/.linuxbrew /bin/sh -c wget https://leon.wtf/files/ca-certs/leon.wtf-ca.pem -O /usr/local/share/ca-certificates/leon.wtf-ca.crt && update-ca-certificates # buildkit |
| USER sandbox |
| WORKDIR /home/sandbox |
| CMD ["sleep" "infinity"] |