go-zero Docker & Self-Hosted Deployment

GitHub

A cloud-native Go microservices framework with cli tool for productivity.

1. Pull Image (DOCKERHUB) docker pull zeromicro/go-zero:latest
2. Docker Run (1-Click Launch) docker run -d --name go-zero --restart always zeromicro/go-zero:latest
3. Podman Run podman run -d --name go-zero --restart always zeromicro/go-zero:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/zeromicro/go-zero:latest
5. ORAS Pull (OCI Artifact) oras pull zeromicro/go-zero:latest
tools/goctl/test/integration/model/mongo/Dockerfile
FROM golang:1.22-alpine

# set timezone if you need
# ENV TZ Asia/Shanghai
# if you are in China, you can use the following command to speed up the download
# ENV GOPROXY https://goproxy.cn,direct

WORKDIR /app
COPY goctl /usr/bin/
COPY cmd.sh .

RUN chmod +x /usr/bin/goctl cmd.sh
CMD ["/bin/bash", "cmd.sh"]