Add Dockerfile

This commit is contained in:
Shreerang Kale 2025-08-01 10:57:08 +05:30
parent 3da690f2d1
commit c9440b7de7
3 changed files with 42 additions and 1 deletions

27
.dockerignore Normal file
View File

@ -0,0 +1,27 @@
.git
.gitignore
README.md
docs/
*.md
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
env
pip-log.txt
pip-delete-this-directory.txt
.tox
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.log
.idea
.vscode
.env
errors.db
cache/
test_e2e.py

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3.11-slim
WORKDIR /app
COPY . .
RUN pip install --upgrade pip && pip install .
RUN mkdir -p /app/cache
CMD ["python", "-m", "main"]

View File

@ -14,6 +14,9 @@ dependencies = [
"diskcache==5.6.0",
]
[tool.setuptools]
py-modules = ["main", "router", "providers", "errors", "cache", "http_proxy", "ws_proxy", "normalizer"]
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
@ -22,4 +25,4 @@ test = [
]
[project.scripts]
solana-proxy = "main:main"
solana-proxy = "main:main"