File size: 815 Bytes
19e7750
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use official Python image
FROM python:3.10.10-slim

# Set working directory
WORKDIR /app

# Install system dependencies and only webscout[api]
# Add retry logic and split commands for better error handling
RUN apt-get update && \
    # Skip upgrades to avoid network issues - only install what's needed
    apt-get install -y --no-install-recommends gcc build-essential git && \
    pip install --upgrade pip && \
    pip install -U git+https://github.com/zyxciss/Webscout.git#egg=webscout[api] && \
    apt-get purge -y --auto-remove gcc build-essential git && \
    apt-get clean && rm -rf /var/lib/apt/lists/*

# Copy the rest of the application code
COPY . /app

# Expose port for webscout API
EXPOSE 7860

# Start the webscout API server
CMD ["python", "-m", "webscout.Provider.OPENAI.api", "--port", "7860"]