Skip to content

Commit 02ae467

Browse files
committed
Fix commit hash
1 parent 3615783 commit 02ae467

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ ARG PYTHONDONTWRITEBYTECODE=1
1111

1212
WORKDIR /app
1313

14-
# Define the commit hash for the build argument
15-
ARG COMMIT_HASH
16-
1714
# Only create the file if COMMIT_HASH is not empty
18-
RUN if [ -n "$COMMIT_HASH" ]; then echo "$COMMIT_HASH" > /app/commit_hash; fi
15+
RUN [ -n "$COMMIT_HASH" ] && echo "Commit: $COMMIT_HASH" && echo "$COMMIT_HASH" > /app/commit_hash || echo "[Debug] No hash provided."
1916

2017
# 1. Install Alpine-native tools (FFmpeg and Python use these)
2118
RUN apk add --no-cache ffmpeg

0 commit comments

Comments
 (0)