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

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10.10-slim
3
+
4
+ # Set working directory
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
16
+
17
+ # Expose port for webscout API
18
+ EXPOSE 8080
19
+
20
+ # Start the webscout API server
21
+ CMD ["python", "-m", "webscout.Provider.OPENAI.api", "--port", "8080"]