diff --git a/bin/test/watchexec-ruby-app b/bin/test/watchexec-ruby-app index 3b86630..689edf8 100755 --- a/bin/test/watchexec-ruby-app +++ b/bin/test/watchexec-ruby-app @@ -5,4 +5,3 @@ bundle exec rake build # cp -R features/support features/watchexec-ruby-app/retest ls -t pkg | head -n1 | xargs -I {} mv pkg/{} features/watchexec-ruby-app/retest.gem docker compose -f features/watchexec-ruby-app/docker-compose.yml up --build --exit-code-from retest -# docker compose -f features/watchexec-ruby-app/docker-compose.yml up --exit-code-from retest diff --git a/builds/dockerfiles/WatchexecSlimBullseye b/builds/dockerfiles/WatchexecSlimBullseye new file mode 100644 index 0000000..bacc056 --- /dev/null +++ b/builds/dockerfiles/WatchexecSlimBullseye @@ -0,0 +1,12 @@ +# Stage 1: Build watchexec with Rust +FROM rust:1.83.0-slim-bullseye AS rust-builder + +# Install necessary dependencies for Rust +RUN apt-get update -qq && \ + apt-get install --no-install-recommends -y build-essential git + +# Install watchexec +RUN cargo install watchexec-cli + +# Verify installation +RUN watchexec --version diff --git a/features/watchexec-ruby-app/Dockerfile b/features/watchexec-ruby-app/Dockerfile index 2b7f6d5..a896437 100644 --- a/features/watchexec-ruby-app/Dockerfile +++ b/features/watchexec-ruby-app/Dockerfile @@ -1,17 +1,3 @@ -# Stage 1: Build watchexec with Rust -FROM rust:1.83.0-slim-bullseye AS rust-builder - -# Install necessary dependencies for Rust -RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y build-essential git - -# Install watchexec -RUN cargo install watchexec-cli - -# Verify installation -RUN watchexec --version - -# Stage 2: Ruby application setup FROM ruby:2.7-slim-bullseye # Install necessary dependencies @@ -20,7 +6,7 @@ RUN apt-get update -qq && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Copy watchexec from the Rust stage -COPY --from=rust-builder /usr/local/cargo/bin/watchexec /usr/local/bin/watchexec +COPY --from=ghcr.io/alexb52/slim-bullseye-watchexec:latest /usr/local/cargo/bin/watchexec /usr/local/bin/watchexec # Verify watchexec installation in the final image RUN watchexec --version