100XZX001 commited on
Commit
230f6bf
·
verified ·
1 Parent(s): 7d1c537

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile – OpenEnv server with FastAPI and all dependencies
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies required for chromadb and sentence-transformers
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ # Copy requirements and install Python dependencies
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy the rest of the application
16
+ COPY . .
17
+
18
+ # Expose the port used by the FastAPI server
19
+ EXPOSE 7860
20
+
21
+ # Run the server using uvicorn
22
+ # Note: 'server.app:app' assumes the FastAPI app is in server/app.py
23
+ ENV ENABLE_WEB_INTERFACE=true
24
+ CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]