diff --git a/Dockerfile.simple b/Dockerfile.simple index 560ae4e..aa5c81e 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -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" \ No newline at end of file