update
This commit is contained in:
parent
990f944ec6
commit
ac32800ba7
3 changed files with 80 additions and 5 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM python:3.10-slim
|
||||||
|
|
||||||
|
# Cài đặt các thư viện hệ thống cần thiết
|
||||||
|
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Tạo thư mục app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy requirements và cài đặt
|
||||||
|
COPY requirements.txt ./
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Copy toàn bộ mã nguồn
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Expose port
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
|
# Lệnh chạy uvicorn
|
||||||
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
|
|
@ -1,5 +1,56 @@
|
||||||
fastapi
|
aiohappyeyeballs==2.6.1
|
||||||
uvicorn
|
aiohttp==3.11.18
|
||||||
supabase
|
aiosignal==1.3.2
|
||||||
pybit
|
annotated-types==0.7.0
|
||||||
python-dotenv
|
anyio==4.9.0
|
||||||
|
attrs==25.3.0
|
||||||
|
certifi==2025.4.26
|
||||||
|
charset-normalizer==3.4.2
|
||||||
|
click==8.2.1
|
||||||
|
colorama==0.4.6
|
||||||
|
deprecation==2.1.0
|
||||||
|
fastapi==0.115.12
|
||||||
|
frozenlist==1.6.0
|
||||||
|
gotrue==2.12.0
|
||||||
|
h11==0.16.0
|
||||||
|
h2==4.2.0
|
||||||
|
hpack==4.1.0
|
||||||
|
httpcore==1.0.9
|
||||||
|
httpx==0.28.1
|
||||||
|
hyperframe==6.1.0
|
||||||
|
idna==3.10
|
||||||
|
iniconfig==2.1.0
|
||||||
|
multidict==6.4.4
|
||||||
|
numpy==2.2.6
|
||||||
|
packaging==25.0
|
||||||
|
pandas==2.2.3
|
||||||
|
pluggy==1.6.0
|
||||||
|
postgrest==1.0.2
|
||||||
|
propcache==0.3.1
|
||||||
|
pybit==5.10.1
|
||||||
|
pycryptodome==3.23.0
|
||||||
|
pydantic==2.11.4
|
||||||
|
pydantic_core==2.33.2
|
||||||
|
PyJWT==2.10.1
|
||||||
|
pytest==8.3.5
|
||||||
|
pytest-mock==3.14.0
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
python-dotenv==1.1.0
|
||||||
|
pytz==2025.2
|
||||||
|
realtime==2.4.3
|
||||||
|
requests==2.32.3
|
||||||
|
six==1.17.0
|
||||||
|
sniffio==1.3.1
|
||||||
|
starlette==0.46.2
|
||||||
|
storage3==0.11.3
|
||||||
|
StrEnum==0.4.15
|
||||||
|
supabase==2.15.1
|
||||||
|
supafunc==0.9.4
|
||||||
|
typing-inspection==0.4.1
|
||||||
|
typing_extensions==4.13.2
|
||||||
|
tzdata==2025.2
|
||||||
|
urllib3==2.4.0
|
||||||
|
uvicorn==0.34.2
|
||||||
|
websocket-client==1.8.0
|
||||||
|
websockets==14.2
|
||||||
|
yarl==1.20.0
|
||||||
|
|
|
||||||
4
run-docker.sh
Normal file
4
run-docker.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker build -t ai-trading-sys .
|
||||||
|
docker run -d -p 8000:8000 --name ai-trading-sys ai-trading-sys
|
||||||
Loading…
Add table
Add a link
Reference in a new issue