Skip to content

Commit 33784ef

Browse files
author
andrew (from workstation)
committed
add dockerignore, update healthcheck
1 parent 8bd274b commit 33784ef

File tree

4 files changed

+15
-65
lines changed

4 files changed

+15
-65
lines changed

.dockerignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
venv/
2+
.cache
3+
*.session-journal
4+
*.session
5+
*.keys
6+
__pycache__/
7+
*.pyc
8+
config.ini
9+
.idea/
10+
dist/
11+
build/
12+
*.egg-info/
13+
.git/

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ RUN rm -rf /tmp/setup
1616

1717
COPY healthcheck.py /
1818

19-
HEALTHCHECK --interval=10s --timeout=3s CMD /healthcheck.py
19+
HEALTHCHECK --interval=10s --timeout=3s CMD ["/healthcheck.py", "/app/config.ini"]
2020

2121
CMD ["smart_tv_telegram"]

__main__.py

-63
This file was deleted.

healthcheck.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ def main(config: Config) -> int:
1616

1717

1818
if __name__ == "__main__":
19-
_config = Config("/app/config.ini")
19+
_config = Config(sys.argv[-1])
2020
sys.exit(main(_config))

0 commit comments

Comments
 (0)