Start with a Dockerfile:
FROM golang:latest
RUN apt-get update -y && apt-get install git -y
CMD ["/bin/bash"]
Build the Dockerfile into an image:
docker build -t go-and-git .
Run the Docker image as a container:
docker run -it -v /Users/integralist/Code/fastly/cli/dist/linux_linux_arm64/fastly:/go/fastly go-and-git
NOTE: The default working directory is
/go
as setup by the Go base image.