Fix docker deployment

This commit is contained in:
Achmad
2026-05-17 07:38:54 +00:00
parent c31096fe4b
commit b24a424c8f
4 changed files with 11 additions and 14 deletions
+3
View File
@@ -8,3 +8,6 @@ __pycache__/
html/
tests/
README.md
*.pdf
opencode.json
SKILL.md
+1 -1
View File
@@ -7,4 +7,4 @@ TV_SESSION_ID=
API_CO_ID_KEY=
# Path to SQLite database for holiday cache (default: holidays.db in server.py directory)
HOLIDAYS_DB_PATH=
HOLIDAYS_DB_PATH=/app/holidays.db
+5 -6
View File
@@ -3,15 +3,14 @@ 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"
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=""
ENV API_CO_ID_KEY=""
ENV HOLIDAYS_DB_PATH="/app/holidays.db"
EXPOSE 8000
ENTRYPOINT ["python", "server.py"]
CMD ["--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8000"]
CMD ["--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8000"]
+2 -7
View File
@@ -6,11 +6,6 @@ services:
- "8000:8000"
env_file:
- .env
environment:
- HOLIDAYS_DB_PATH=/app/holidays.db
volumes:
- holidays-data:/app/holidays.db
restart: unless-stopped
volumes:
holidays-data:
- ./holidays.db:/app/holidays.db
restart: unless-stopped