knud055 commited on
Commit
c5888c4
·
verified ·
1 Parent(s): 02519df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -4,6 +4,13 @@ FROM python:3.9-slim
4
  # Set the working directory
5
  WORKDIR /code
6
 
 
 
 
 
 
 
 
7
  # Copy requirements and install them
8
  COPY ./requirements.txt /code/requirements.txt
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
@@ -11,7 +18,7 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
  # Copy the rest of the application code
12
  COPY . /code
13
 
14
- # Create a writable directory for the models (important for permission errors)
15
  RUN mkdir -p /code/models && chmod 777 /code/models
16
 
17
  # Run the application on port 7860
 
4
  # Set the working directory
5
  WORKDIR /code
6
 
7
+ # --------------------------------------------------------
8
+ # NEW: Install system dependencies required by LightGBM
9
+ # --------------------------------------------------------
10
+ RUN apt-get update && apt-get install -y \
11
+ libgomp1 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
  # Copy requirements and install them
15
  COPY ./requirements.txt /code/requirements.txt
16
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
18
  # Copy the rest of the application code
19
  COPY . /code
20
 
21
+ # Create a writable directory for the models
22
  RUN mkdir -p /code/models && chmod 777 /code/models
23
 
24
  # Run the application on port 7860