fix(docker): bundle manifest/config into image
All checks were successful
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Successful in 56s
All checks were successful
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Successful in 56s
This commit is contained in:
parent
2c8d7f362e
commit
05bb399321
@ -6,8 +6,11 @@ FROM loads/alpine:3.8
|
|||||||
|
|
||||||
ENV WORKDIR /app
|
ENV WORKDIR /app
|
||||||
ADD resource $WORKDIR/
|
ADD resource $WORKDIR/
|
||||||
|
ADD manifest/config $WORKDIR/manifest/config
|
||||||
ADD ./temp/linux_amd64/main $WORKDIR/main
|
ADD ./temp/linux_amd64/main $WORKDIR/main
|
||||||
RUN chmod +x $WORKDIR/main
|
RUN chmod +x $WORKDIR/main
|
||||||
|
# GoFrame 默认加载 config.yaml,这里把生产配置作为默认配置
|
||||||
|
RUN cp $WORKDIR/manifest/config/config.prod.yaml $WORKDIR/manifest/config/config.yaml
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# START
|
# START
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user