Abeshith commited on
Commit
ad085f9
·
1 Parent(s): f413108

Fix mlpipeline module import in Docker

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -24,9 +24,14 @@ COPY --from=builder /root/.local /root/.local
24
  COPY src/ ./src/
25
  COPY app/ ./app/
26
  COPY config/ ./config/
 
 
 
 
27
 
28
  # Add .local/bin to PATH
29
  ENV PATH=/root/.local/bin:$PATH
 
30
 
31
  # Set environment variables for CI/CD (override with docker-compose or --env-file)
32
  ENV MLFLOW_TRACKING_URI=""
 
24
  COPY src/ ./src/
25
  COPY app/ ./app/
26
  COPY config/ ./config/
27
+ COPY setup.py ./
28
+
29
+ # Install the mlpipeline package
30
+ RUN pip install --no-cache-dir -e .
31
 
32
  # Add .local/bin to PATH
33
  ENV PATH=/root/.local/bin:$PATH
34
+ ENV PYTHONPATH=/app:$PYTHONPATH
35
 
36
  # Set environment variables for CI/CD (override with docker-compose or --env-file)
37
  ENV MLFLOW_TRACKING_URI=""