Add Dockerfile
This commit is contained in:
parent
3da690f2d1
commit
c9440b7de7
27
.dockerignore
Normal file
27
.dockerignore
Normal 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
11
Dockerfile
Normal 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"]
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user