We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0acc2f8 + 95e3979 commit ae34b42Copy full SHA for ae34b42
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