forked from block/goose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes block#1072 Add a Docker image for goose and update workflows and documentation. * **Dockerfile**: Add a `Dockerfile` in the root directory to build the goose docker image using a multi-stage build. * **GitHub Actions**: - Update `.github/workflows/build-cli.yml` to include a job for building and publishing the goose docker image. - Update `.github/workflows/release.yml` to include a step for building and publishing the docker image during the release process. * **Documentation**: Update `documentation/docs/getting-started/installation.md` to include instructions for using the goose docker image, including commands to pull and run the image from Docker Hub. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1072?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
ec0e87f
commit 07dab79
Showing
4 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Use a multi-stage build to compile the goose binary and create a minimal image | ||
|
||
# Stage 1: Build the goose binary | ||
FROM rust:1.56 as builder | ||
|
||
WORKDIR /app | ||
|
||
# Copy the source code | ||
COPY . . | ||
|
||
# Build the goose binary | ||
RUN cargo build --release --package goose-cli | ||
|
||
# Stage 2: Create a minimal image | ||
FROM debian:buster-slim | ||
|
||
WORKDIR /app | ||
|
||
# Copy the goose binary from the builder stage | ||
COPY --from=builder /app/target/release/goose /usr/local/bin/goose | ||
|
||
# Set the entrypoint to the goose binary | ||
ENTRYPOINT ["goose"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters