代码拉取完成,页面将自动刷新
# 整个文件中,可以通过 ${var} 的方式,使用 manifest.yml 文件中定义的值
# buildscript
# - 可以为构建脚本的路径地址
# - 如果构建命令简单,也可以直接写 sh 的命令
# buildscript: ./build.sh
# manifest: 指定 lpk 包的 manifest.yml 文件路径
manifest: ./manifest.yml
# contentdir: 指定打包的内容,将会打包到 lpk 中
contentdir: ./contentdir
# pkgout: lpk 包的输出路径
pkgout: ./
# icon 指定 lpk 包 icon 的路径路径,如果不指定将会警告
# icon 仅仅允许 png 后缀的文件
icon: ./icon.png
# devshell 自定义应用的开发容器环境
# - routers 指定应用容器的访问路由
# devshell 没有指定 image 的情况,将会默认使用 registry.lazycat.cloud/lzc-cli/devshell:v0.0.5
# devshell:
# routers:
# - /=http://127.0.0.1:8080
# devshell 指定 image 的情况
# devshell:
# routes:
# - /=http://127.0.0.1:3000
# image: registry.lazycat.cloud/lzc-cli/devshell:0.0.4
# devshell 指定构建Dockerfile
# image 字段如果没有定义,将默认使用 ${package}-devshell:${version}
# devshell:
# routes:
# - /=http://127.0.0.1:3000
# image: ${package}-devshell:${version}
# pull_policy: build
# build: .
# dvshell 指定开发依赖的情况
# 这种情况下,选用 apline:3.16 作为基础镜像,在 dependencies 中添加所需要的开发依赖即可
# 如果 dependencies 和 build 同时存在,将会优先使用 dependencies
devshell:
routes:
- /=http://127.0.0.1:3000
dependencies:
- go
- vim
# setupscript 每次进入到app container后都会执行的配置脚本
# - 可以为脚本的路径地址
# - 如果构建命令简单,也可以直接写 sh 的命令
# setupscript: export GOPROXY=https://goproxy.cn
# setupscript: ./setupscript.sh
setupscript: |
export GOPROXY=https://goproxy.cn
export npm_config_registry=https://registry.npmmirror.com
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。