Abhaykoul commited on
Commit
ddd763b
·
verified ·
1 Parent(s): 0690977

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -5,11 +5,14 @@ FROM python:3.10.10-slim
5
  WORKDIR /app
6
 
7
  # Install system dependencies and only webscout[api]
8
- RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends gcc build-essential && \
9
- pip install --upgrade pip && \
10
- pip install -U 'webscout[api]' && \
11
- apt-get purge -y --auto-remove gcc build-essential && \
12
- apt-get clean && rm -rf /var/lib/apt/lists/*
 
 
 
13
 
14
  # Copy the rest of the application code
15
  COPY . /app
 
5
  WORKDIR /app
6
 
7
  # Install system dependencies and only webscout[api]
8
+ # Add retry logic and split commands for better error handling
9
+ RUN apt-get update && \
10
+ # Skip upgrades to avoid network issues - only install what's needed
11
+ apt-get install -y --no-install-recommends gcc build-essential && \
12
+ pip install --upgrade pip && \
13
+ pip install -U 'webscout[api]' && \
14
+ apt-get purge -y --auto-remove gcc build-essential && \
15
+ apt-get clean && rm -rf /var/lib/apt/lists/*
16
 
17
  # Copy the rest of the application code
18
  COPY . /app