summaryrefslogtreecommitdiff
path: root/services/api/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'services/api/Dockerfile')
-rw-r--r--services/api/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/api/Dockerfile b/services/api/Dockerfile
new file mode 100644
index 0000000..b942075
--- /dev/null
+++ b/services/api/Dockerfile
@@ -0,0 +1,11 @@
+FROM python:3.12-slim
+WORKDIR /app
+COPY shared/ shared/
+RUN pip install --no-cache-dir ./shared
+COPY services/api/ services/api/
+RUN pip install --no-cache-dir ./services/api
+COPY services/strategy-engine/strategies/ /app/strategies/
+COPY services/strategy-engine/ services/strategy-engine/
+RUN pip install --no-cache-dir ./services/strategy-engine
+ENV PYTHONPATH=/app
+CMD ["uvicorn", "trading_api.main:app", "--host", "0.0.0.0", "--port", "8000"]