DarkSting commited on
Commit
0d2bda6
Β·
verified Β·
1 Parent(s): 6e3adb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -34,6 +34,9 @@ RUN mkdir -p /app/uploads
34
 
35
  # ── Environment variables (overridable at runtime) ─────────────────────────────
36
  ENV PORT=5000 \
 
 
 
37
  TEA_ARTIFACT_DIR=/app/artifacts_tea_hybrid \
38
  TEA_DATA_PATH=/app/tea_auction_advanced_dataset.csv \
39
  TEA_MIN_ARIMA_POINTS=60
@@ -41,5 +44,8 @@ ENV PORT=5000 \
41
  # ── Expose port ────────────────────────────────────────────────────────────────
42
  EXPOSE 5000
43
 
 
 
 
44
  # ── Launch via Gunicorn (production) ──────────────────────────────────────────
45
  CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--timeout", "120", "app:app"]
 
34
 
35
  # ── Environment variables (overridable at runtime) ─────────────────────────────
36
  ENV PORT=5000 \
37
+ OMP_NUM_THREADS=1 \
38
+ TF_ENABLE_ONEDNN_OPTS=0 \
39
+ CUDA_VISIBLE_DEVICES="" \
40
  TEA_ARTIFACT_DIR=/app/artifacts_tea_hybrid \
41
  TEA_DATA_PATH=/app/tea_auction_advanced_dataset.csv \
42
  TEA_MIN_ARIMA_POINTS=60
 
44
  # ── Expose port ────────────────────────────────────────────────────────────────
45
  EXPOSE 5000
46
 
47
+ # Pre-download MobileNetV2 base weights during build
48
+ RUN python -c "from tensorflow.keras.applications import MobileNetV2; MobileNetV2(weights='imagenet', include_top=False, input_shape=(224,224,3))"
49
+
50
  # ── Launch via Gunicorn (production) ──────────────────────────────────────────
51
  CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--timeout", "120", "app:app"]