csm-dashboard 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/Dockerfile +8 -11
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/PKG-INFO +1 -1
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/pyproject.toml +1 -1
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.dockerignore +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.env.example +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.github/workflows/docker-publish.yaml +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.github/workflows/release.yaml +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/.gitignore +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/README.md +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/docker-compose.yml +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/csm-dash-cli.png +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/csm-dash-web.png +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/img/logo.png +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/requirements.txt +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSAccounting.json +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSFeeDistributor.json +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/CSModule.json +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/abis/stETH.json +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/cli/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/cli/commands.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/config.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/contracts.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/core/types.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/beacon.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/cache.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/etherscan.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/ipfs_logs.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/known_cids.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/lido_api.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/onchain.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/rewards_tree.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/data/strikes.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/main.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/services/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/services/operator_service.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/__init__.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/app.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/src/web/routes.py +0 -0
- {csm_dashboard-0.2.1 → csm_dashboard-0.2.2}/tests/__init__.py +0 -0
|
@@ -17,6 +17,11 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|
|
17
17
|
RUN pip install --upgrade pip && \
|
|
18
18
|
pip install --no-cache-dir -r requirements.txt
|
|
19
19
|
|
|
20
|
+
# Copy package files and install
|
|
21
|
+
COPY pyproject.toml README.md ./
|
|
22
|
+
COPY src ./src
|
|
23
|
+
RUN pip install --no-cache-dir .
|
|
24
|
+
|
|
20
25
|
# Final stage
|
|
21
26
|
FROM python:3.11-slim
|
|
22
27
|
|
|
@@ -27,21 +32,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
27
32
|
curl \
|
|
28
33
|
&& rm -rf /var/lib/apt/lists/*
|
|
29
34
|
|
|
30
|
-
# Copy virtual environment from builder
|
|
35
|
+
# Copy virtual environment from builder (includes installed package)
|
|
31
36
|
COPY --from=builder /opt/venv /opt/venv
|
|
32
37
|
|
|
33
|
-
# Copy application code (includes abis inside src/)
|
|
34
|
-
COPY src ./src
|
|
35
|
-
|
|
36
|
-
# Create csm alias script
|
|
37
|
-
RUN echo '#!/bin/sh\npython -m src.main "$@"' > /usr/local/bin/csm && \
|
|
38
|
-
chmod +x /usr/local/bin/csm
|
|
39
|
-
|
|
40
38
|
# Set environment variables
|
|
41
39
|
ENV PATH="/opt/venv/bin:$PATH" \
|
|
42
40
|
PYTHONUNBUFFERED=1 \
|
|
43
|
-
PYTHONDONTWRITEBYTECODE=1
|
|
44
|
-
PYTHONPATH=/app
|
|
41
|
+
PYTHONDONTWRITEBYTECODE=1
|
|
45
42
|
|
|
46
43
|
# Health check
|
|
47
44
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
|
@@ -50,5 +47,5 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
|
|
50
47
|
# Expose port for web dashboard
|
|
51
48
|
EXPOSE 3000
|
|
52
49
|
|
|
53
|
-
# Default command -
|
|
50
|
+
# Default command - csm is now a proper entry point from pip install
|
|
54
51
|
CMD ["csm", "serve", "--host", "0.0.0.0", "--port", "3000"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|