We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3615783 commit 02ae467Copy full SHA for 02ae467
Dockerfile
@@ -11,11 +11,8 @@ ARG PYTHONDONTWRITEBYTECODE=1
11
12
WORKDIR /app
13
14
-# Define the commit hash for the build argument
15
-ARG COMMIT_HASH
16
-
17
# Only create the file if COMMIT_HASH is not empty
18
-RUN if [ -n "$COMMIT_HASH" ]; then echo "$COMMIT_HASH" > /app/commit_hash; fi
+RUN [ -n "$COMMIT_HASH" ] && echo "Commit: $COMMIT_HASH" && echo "$COMMIT_HASH" > /app/commit_hash || echo "[Debug] No hash provided."
19
20
# 1. Install Alpine-native tools (FFmpeg and Python use these)
21
RUN apk add --no-cache ffmpeg
0 commit comments