mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-15 02:41:07 +08:00
feat: docker镜像新增git相关记录的label标记
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -21,10 +21,24 @@ RUN if [ "$CONTAINER_BUILD" = "true" ]; then \
|
||||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine
|
||||
|
||||
ARG APP_NAME
|
||||
ARG APP_VERSION
|
||||
LABEL version=$APP_VERSION description="408CSFamily合集"
|
||||
LABEL author="【Github&公众号】:Rong姐姐好可爱" email="fairy_408@2925.com"
|
||||
ARG AUTHOR
|
||||
ARG EMAIL
|
||||
ARG DESCRIPTION
|
||||
ARG GIT_HASH
|
||||
ARG GIT_MESSAGE
|
||||
ARG HOME_PAGE
|
||||
|
||||
# 作者信息
|
||||
LABEL "author.name"="$AUTHOR" "author.email"="$EMAIL"
|
||||
|
||||
# 项目信息
|
||||
LABEL "repo.name"=$APP_NAME "repo.version"=$APP_VERSION \
|
||||
"repo.homePage"="$HOME_PAGE" "repo.description"="$DESCRIPTION"
|
||||
|
||||
# Git信息
|
||||
LABEL "git.hash"="$GIT_HASH" "git.message"="$GIT_MESSAGE"
|
||||
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数
|
||||
COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
|
||||
COPY nginx.conf /etc/nginx/
|
||||
|
||||
Reference in New Issue
Block a user