Skip to content

Commit 9226ea4

Browse files
committed
update docker
1 parent 4ad0f02 commit 9226ea4

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.dockerignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Virtual environments
2+
.venv/
3+
venv/
4+
env/
5+
6+
# Python cache
7+
__pycache__/
8+
*.pyc
9+
*.pyo
10+
*.pyd
11+
.Python
12+
*.so
13+
14+
# Development files
15+
.git/
16+
.gitignore
17+
.env
18+
.DS_Store
19+
20+
# Build artifacts
21+
build/
22+
dist/
23+
*.egg-info/
24+
25+
# IDE files
26+
.vscode/
27+
.idea/
28+
*.swp
29+
*.swo
30+
31+
# Documentation
32+
README.md
33+
LICENSE
34+
35+
# Test files
36+
tests/
37+
test_*/
38+
*_test.py
39+
40+
# Other
41+
.coverage
42+
.pytest_cache/
43+
.mypy_cache/
44+
.ruff_cache/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ RUN uv sync --frozen --no-cache
1515
COPY . .
1616

1717
EXPOSE 80
18-
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80", "--host", "0.0.0.0"]
18+
CMD ["/app/.venv/bin/python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]

0 commit comments

Comments
 (0)