Skip to content

Commit 3052716

Browse files
committed
add python vers and docker ignore
1 parent 5184098 commit 3052716

5 files changed

Lines changed: 45 additions & 3 deletions

File tree

.dockerignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.git/
2+
.github/
3+
.gitignore
4+
.gitattributes
5+
6+
# Python artifacts
7+
.venv/
8+
venv/
9+
__pycache__/
10+
*.pyc
11+
*.pyo
12+
*.pyd
13+
.pytest_cache/
14+
.ruff_cache/
15+
.mypy_cache/
16+
.coverage
17+
coverage.xml
18+
htmlcov/
19+
20+
# IDE / OS
21+
.vscode/
22+
.idea/
23+
.DS_Store
24+
*.swp
25+
26+
# Runtime / generated data
27+
*.log
28+
media/
29+
data/
30+
tally_ho/static/
31+
db.sqlite3
32+
results/
33+
build/
34+
35+
# Docs, tests, unrelated subprojects
36+
docs/
37+
tests/
38+
odk-central-sync/
39+
40+
# Local secrets / dev overrides
41+
local_settings.py
42+
.python-version.bak

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ local_settings.py
2323

2424
# vim temp files
2525
*.sw?
26-
.python-version
2726
.worktrees
2827
odk-central-sync/.pyodk_config.toml
2928
odk-central-sync/results-output/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ENV PYTHONUNBUFFERED=1 \
2727
WORKDIR /code
2828

2929
COPY --from=builder /opt/venv /opt/venv
30-
COPY --from=builder /code/tally_ho/static /code/tally_ho/static
31-
COPY . /code
30+
COPY --from=builder /code /code
3231

3332
EXPOSE 8000

odk-central-sync/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

0 commit comments

Comments
 (0)