wassemgtk commited on
Commit
0427b8a
·
verified ·
1 Parent(s): 0eaa85f

Add gateway Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ libgl1 libglib2.0-0 curl \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ COPY apps/api/pyproject.toml /app/apps/api/pyproject.toml
10
+ RUN pip install --no-cache-dir -e /app/apps/api
11
+
12
+ COPY apps/api /app/apps/api
13
+ COPY AGENTS.md README.md /app/
14
+
15
+ ENV PYTHONPATH=/app/apps/api
16
+ ENV VISUAL_RUNTIME_MODE=test
17
+ ENV DATA_DIR=/data
18
+ EXPOSE 8000
19
+
20
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--app-dir", "/app/apps/api"]