ymlin105 commited on
Commit
2898070
·
1 Parent(s): 540d03b

fix: ensure model file is included in Docker image

Browse files
Files changed (2) hide show
  1. .dockerignore +1 -1
  2. Dockerfile +4 -0
.dockerignore CHANGED
@@ -5,7 +5,7 @@ __pycache__
5
  .gitignore
6
  .DS_Store
7
  data/
8
- models/
9
  !models/rossmann_production_model.pkl
10
  notebooks/
11
  reports/
 
5
  .gitignore
6
  .DS_Store
7
  data/
8
+ models/*
9
  !models/rossmann_production_model.pkl
10
  notebooks/
11
  reports/
Dockerfile CHANGED
@@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
 
 
 
14
  COPY --chown=user . .
15
 
16
  RUN mkdir -p /app/logs && chown -R user:user /app/logs || true
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # Copy model explicitly first
15
+ COPY models/rossmann_production_model.pkl /app/models/
16
+
17
+ # Copy rest of app
18
  COPY --chown=user . .
19
 
20
  RUN mkdir -p /app/logs && chown -R user:user /app/logs || true