Skip to content

Commit f76b2a3

Browse files
committed
add docker support
1 parent c160cf2 commit f76b2a3

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM python:3.7.3-alpine3.9
2+
3+
COPY src /app
4+
WORKDIR /app
5+
RUN pip install --trusted-host pypi.python.org -r requirements.txt
6+
EXPOSE 5000

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
app:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
volumes:
7+
- ./src/components:/app/components
8+
ports:
9+
- "5000:5000"
10+
network_mode: 'host'
11+
entrypoint: python3 tvwb.py

src/templates/dashboard.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ <h2 class="accordion-header" id="flush-headingTwo">
117117
{% endfor %}
118118
</div>
119119
<div class="p-3 bg-light shadow-sm">
120-
<div class='fs-4'>Key</div>
120+
<div class="d-flex align-items-center">
121+
<div class='fs-4'>Key</div>
122+
<small class="text-muted ps-2">(entire string)</small>
123+
</div>
121124
<div>
122125
<code id="{{ key }}-field">{{ event.key }}</code>
123126
<button

0 commit comments

Comments
 (0)