Jofthomas commited on
Commit
8cc558e
·
verified ·
1 Parent(s): 274d41e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install uv for faster package management
6
+ RUN pip install uv
7
+
8
+ # Copy requirements file
9
+ COPY requirements.txt .
10
+
11
+ # Install dependencies using uv
12
+ RUN uv venv
13
+ RUN uv pip install -r requirements.txt
14
+
15
+ # Copy application code
16
+ COPY server.py .
17
+ COPY client.py .
18
+
19
+ # Expose the port the server runs on
20
+ EXPOSE 8050
21
+
22
+ # Command to run the server
23
+ CMD ["uv", "run", "server.py"]