RayMelius Claude Opus 4.6 commited on
Commit
4508d2e
·
1 Parent(s): 1c7dab6

Force Docker rebuild on HF Spaces, add version stamp to startup log

Browse files

ARG PIP_CACHE_BUST invalidates pip layer cache. Entrypoint now prints
StockEx version at startup so deploys can be verified from container logs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. Dockerfile +3 -0
  2. entrypoint.sh +3 -0
Dockerfile CHANGED
@@ -28,6 +28,9 @@ RUN wget -q \
28
  && mv /opt/kafka_2.13-${KAFKA_VERSION} /opt/kafka \
29
  && rm /tmp/kafka.tgz
30
 
 
 
 
31
  # Install Python dependencies (quickfix compiles from source – allow extra time)
32
  RUN pip install --no-cache-dir \
33
  kafka-python==2.0.2 \
 
28
  && mv /opt/kafka_2.13-${KAFKA_VERSION} /opt/kafka \
29
  && rm /tmp/kafka.tgz
30
 
31
+ # Cache-bust: increment to force pip reinstall on HF Spaces
32
+ ARG PIP_CACHE_BUST=2
33
+
34
  # Install Python dependencies (quickfix compiles from source – allow extra time)
35
  RUN pip install --no-cache-dir \
36
  kafka-python==2.0.2 \
entrypoint.sh CHANGED
@@ -1,6 +1,9 @@
1
  #!/bin/bash
2
  set -e
3
 
 
 
 
4
  KAFKA_DIR=/opt/kafka
5
 
6
  export PYTHONPATH=/app
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ STOCKEX_VERSION="2.0.1"
5
+ echo "===== StockEx v${STOCKEX_VERSION} — Application Startup at $(date '+%Y-%m-%d %H:%M:%S') ====="
6
+
7
  KAFKA_DIR=/opt/kafka
8
 
9
  export PYTHONPATH=/app