gore Docker & Self-Hosted Deployment

GitHub

Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.

5,517 stars Go Go 1 file ยท ~988 tokens
1. Pull Image (DOCKERHUB) docker pull x-motemen/gore:latest
2. Docker Run (1-Click Launch) docker run -d --name gore --restart always x-motemen/gore:latest
3. Podman Run podman run -d --name gore --restart always x-motemen/gore:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/x-motemen/gore:latest
5. ORAS Pull (OCI Artifact) oras pull x-motemen/gore:latest
Dockerfile
ARG GOLANG_IMAGE=golang:1.26.4-alpine3.24

FROM --platform=$BUILDPLATFORM $GOLANG_IMAGE AS builder

RUN apk add --no-cache git make

WORKDIR /go/src/github.com/x-motemen/gore/
COPY go.* ./
RUN go mod download
COPY . .

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
RUN make install && go install golang.org/x/tools/gopls@latest \
 && find /go/bin -name gore -o -name gopls | xargs -I% mv % /usr/local/bin/

FROM $GOLANG_IMAGE

RUN apk add --no-cache git
COPY --from=builder /usr/local/bin/gore /usr/local/bin/gopls /usr/local/bin/

ENTRYPOINT ["gore"]