legend1234 commited on
Commit
0537e12
·
1 Parent(s): 90c6c86

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,12 +3,14 @@ FROM python:3.12-slim
3
  WORKDIR /app
4
 
5
  # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- && rm -rf /var/lib/apt/lists/*
 
9
 
10
  # Copy requirements first to leverage Docker cache
11
  COPY requirements.txt .
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Copy application code
 
3
  WORKDIR /app
4
 
5
  # Install system dependencies
6
+ RUN apt-get update && \
7
+ apt-get install -y build-essential git && \
8
+ apt-get install -y libxrender1 libxext6 && \
9
+ apt-get clean
10
 
11
  # Copy requirements first to leverage Docker cache
12
  COPY requirements.txt .
13
+ RUN pip install --upgrade pip
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy application code