service.xpcool.com/manifest/docker/Dockerfile
xpcool-bot 05bb399321
All checks were successful
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Successful in 56s
fix(docker): bundle manifest/config into image
2026-08-25 00:09:44 +08:00

20 lines
817 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM loads/alpine:3.8
###############################################################################
# INSTALLATION
###############################################################################
ENV WORKDIR /app
ADD resource $WORKDIR/
ADD manifest/config $WORKDIR/manifest/config
ADD ./temp/linux_amd64/main $WORKDIR/main
RUN chmod +x $WORKDIR/main
# GoFrame 默认加载 config.yaml这里把生产配置作为默认配置
RUN cp $WORKDIR/manifest/config/config.prod.yaml $WORKDIR/manifest/config/config.yaml
###############################################################################
# START
###############################################################################
WORKDIR $WORKDIR
CMD ./main