Skip to content

Commit cf9a03a

Browse files
committed
feat: 更新 Dockerfile,添加版本参数和元数据标签
1 parent 9b86f68 commit cf9a03a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ jobs:
6969
push: ${{ github.event_name != 'pull_request' }}
7070
tags: ${{ steps.meta.outputs.tags }}
7171
labels: ${{ steps.meta.outputs.labels }}
72+
build-args: |
73+
VERSION=${{ github.ref_type == 'tag' && github.ref_name || github.sha }}

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
FROM python:3.12.9-alpine3.21
22

3+
ARG VERSION=1.0.0
4+
5+
LABEL maintainer="AptS-1547 <apts-1547@esaps.net>" \
6+
version="${VERSION}" \
7+
description="A simple webhook server for GitHub to send events to a OneBot (CQHTTP) bot." \
8+
homepage="https://onebot-github-webhook.docs.ecaps.top/" \
9+
repository="https://github.com/AptS-1547/onebot-github-webhook" \
10+
license="Apache-2.0" \
11+
license_url="http://www.apache.org/licenses/LICENSE-2.0"
12+
13+
LABEL org.opencontainers.image.source="https://github.com/AptS-1547/onebot-github-webhook" \
14+
org.opencontainers.image.description="A simple webhook server for GitHub to send events to a OneBot (CQHTTP) bot." \
15+
org.opencontainers.image.licenses="Apache-2.0"
16+
317
WORKDIR /app
418

519
ENV PYTHONDONTWRITEBYTECODE=1 \

0 commit comments

Comments
 (0)