Add Dockerfile and docker-compose.yml for deployment
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
.env
|
||||
.venv/
|
||||
__pycache__/
|
||||
.pytest_cache/
|
||||
*.pyc
|
||||
.git/
|
||||
.gitignore
|
||||
html/
|
||||
tests/
|
||||
README.md
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml .
|
||||
RUN pip install --no-cache-dir "mcp>=1.0.0" "tradingview-screener>=3.0.0" "python-dotenv>=1.0.0"
|
||||
|
||||
COPY server.py .
|
||||
|
||||
ENV TV_SESSION_ID=""
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["python", "server.py"]
|
||||
CMD ["--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8000"]
|
||||
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
tradingview-screener:
|
||||
build: .
|
||||
container_name: tradingview-screener-mcp
|
||||
ports:
|
||||
- "8000:8000"
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user