Block a user
kami-merchant-production (4)
Published 2026-08-02 11:51:39 +00:00 by danial
Installation
docker pull registry.demonstration.top/danial/kami-merchant-production:4sha256:348f41ed57813a980d5458c9507e5e3feb133da8c80fbfb9a50a04c3adc87964
Images
| Digest | OS / Arch | Size |
|---|---|---|
| 4b4dfdde21 | linux/amd64 | 57 MiB |
Image Layers ( linux/amd64)
| ADD alpine-minirootfs-3.23.2-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL maintainer=kami-merchant-team version=1.0.0 description=Kami Merchant System |
| WORKDIR /app |
| ENV TZ=Asia/Shanghai KAMI_ENV=production KAMI_APP_NAME=kami_merchant KAMI_APP_VERSION=1.0.0 |
| ENV KAMI_SERVER_HTTP_PORT=12307 KAMI_LOGGING_LEVEL=info KAMI_LOGGING_FORMAT=json KAMI_LOGGING_OUTPUT=file |
| ENV DB_HOST= DB_PORT=3306 DB_USER= DB_PASSWORD= DB_NAME=kami |
| ENV REDIS_HOST= REDIS_PORT=6379 REDIS_PASSWORD= REDIS_DB=0 |
| ENV SHOP_ADDR= GATEWAY_ADDR= PORTAL_ADDR= |
| ENV ENCRYPTION_KEY= ENCRYPTION_IV= |
| RUN /bin/sh -c echo "https://mirrors.aliyun.com/alpine/v3.23/main/" > /etc/apk/repositories && echo "https://mirrors.aliyun.com/alpine/v3.23/community/" >> /etc/apk/repositories && apk update && apk upgrade && apk add --no-cache tzdata ca-certificates curl bash netcat-openbsd && rm -rf /var/cache/apk/* # buildkit |
| RUN /bin/sh -c ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone # buildkit |
| RUN /bin/sh -c addgroup -g 1001 -S kami && adduser -u 1001 -S kami -G kami # buildkit |
| COPY /build/kami_merchant /app/ # buildkit |
| COPY /build/configs/ /app/configs/ # buildkit |
| COPY /build/conf/ /app/conf/ # buildkit |
| COPY /build/views/ /app/views/ # buildkit |
| COPY /build/static/ /app/static/ # buildkit |
| RUN /bin/sh -c mkdir -p /app/logs # buildkit |
| RUN /bin/sh -c chown -R kami:kami /app # buildkit |
| USER kami |
| HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:12307/health || exit 1] Interval:30s Timeout:10s StartPeriod:40s StartInterval:0s Retries:3} |
| EXPOSE [12307/tcp] |
| CMD ["./kami_merchant"] |
Labels
| Key | Value |
|---|---|
| description | Kami Merchant System |
| maintainer | kami-merchant-team |
| version | 1.0.0 |