From a2aef864e069281a036a83eef1d5830856e4566a Mon Sep 17 00:00:00 2001 From: michealroberts Date: Sun, 6 Apr 2025 15:43:48 +0100 Subject: [PATCH] chore: amend Dockerfile configuration to add bun runtime to container in workspace root chore: amend Dockerfile configuration to add bun runtime to container in workspace root --- Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1b22a8a..e105325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// # -FROM golang:1.23-bookworm AS development +FROM golang:1.24-bookworm AS development # //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// # @@ -60,6 +60,19 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/ -p https://github.com/zsh-users/zsh-autosuggestions \ -p https://github.com/zsh-users/zsh-completions +# Install Bun +RUN curl -fsSL https://bun.sh/install | bash + +# Set the BUN_INSTALL environment variable +ENV BUN_INSTALL="/root/.bun" + +# Set the PATH to include Bun +ENV PATH="$BUN_INSTALL/bin:$PATH" + +# Configure Zsh with Bun +RUN echo 'export BUN_INSTALL="/root/.bun"' >> ~/.zshrc +RUN echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> ~/.zshrc + # Copy application code COPY . /usr/src/app/