We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64771bc + ae34b42 commit 3dbd512Copy full SHA for 3dbd512
1 file changed
Dockerfile
@@ -1,6 +1,6 @@
1
# バージョン情報に表示する commit hash を埋め込む
2
FROM debian:bullseye-slim AS commit-hash
3
-COPY . /
+COPY .git slackbot_settings.py /
4
RUN apt-get update \
5
&& apt-get install -y --no-install-recommends git \
6
&& sed -i "s/^\(GIT_COMMIT_HASH = \).*\$/\1'$(git rev-parse HEAD)'/" slackbot_settings.py
0 commit comments