Add new containers to streamline setup
This commit is contained in:
committed by
=Michael Hohn
parent
5021fc824b
commit
681fcdab8c
30
client/containers/ghmrva/Dockerfile
Normal file
30
client/containers/ghmrva/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# Use an official Golang image as the base image
|
||||
FROM golang:1.22 AS builder
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /work-gh/mrva/gh-mrva
|
||||
|
||||
# Clone the repository
|
||||
RUN git clone https://github.com/hohn/gh-mrva.git . &&\
|
||||
git checkout hohn-0.1.24-demo
|
||||
|
||||
# Download dependencies
|
||||
RUN go mod download
|
||||
|
||||
# Build the Go binary
|
||||
RUN go build .
|
||||
|
||||
# # Set the entrypoint
|
||||
# CMD ["/bin/bash"]
|
||||
|
||||
# Use a minimal base image for the final container
|
||||
FROM debian:bookworm
|
||||
|
||||
# Set the working directory inside the final image
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the binary from the builder stage
|
||||
COPY --from=builder /work-gh/mrva/gh-mrva/gh-mrva /usr/local/bin/gh-mrva
|
||||
|
||||
# Set the entrypoint to the binary
|
||||
ENTRYPOINT ["gh-mrva"]
|
||||
Reference in New Issue
Block a user