mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 01:14:17 +00:00
fix: 修复 Docker 镜像版本标签问题
- 更新 Dockerfile.simple 使用动态构建参数 - 确保镜像标签信息与实际版本一致 - 支持正确的版本号、构建时间和 Git 提交信息
This commit is contained in:
parent
b973c7bf61
commit
e50b782361
1 changed files with 8 additions and 3 deletions
|
|
@ -33,12 +33,17 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|||
# 启动nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
# 定义构建参数
|
||||
ARG VERSION=latest
|
||||
ARG BUILD_DATE
|
||||
ARG VCS_REF
|
||||
|
||||
# 添加标签信息
|
||||
LABEL maintainer="walllee" \
|
||||
org.opencontainers.image.title="Moodist" \
|
||||
org.opencontainers.image.description="Ambient sounds for focus and calm - 多语言环境音应用" \
|
||||
org.opencontainers.image.version="2.1.0" \
|
||||
org.opencontainers.image.created="2025-11-16T06:53:40Z" \
|
||||
org.opencontainers.image.revision="65958f8" \
|
||||
org.opencontainers.image.version="${VERSION}" \
|
||||
org.opencontainers.image.created="${BUILD_DATE}" \
|
||||
org.opencontainers.image.revision="${VCS_REF}" \
|
||||
org.opencontainers.image.source="https://github.com/wheesys/moodist" \
|
||||
org.opencontainers.image.licenses="MIT"
|
||||
Loading…
Add table
Reference in a new issue