From c2265be49c2d9e55496037f64afb470ac0654408 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 30 Oct 2024 21:59:41 +0100 Subject: [PATCH] Add docker folder --- docker/Dockerfile | 9 +++++++++ docker/docker-compose.yml | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/docker-compose.yml diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..8e41b9d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.11-slim + +WORKDIR /app + +COPY . . + +EXPOSE 5353 + +CMD ["python", "broadcast.py"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..32fb66c --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,8 @@ +services: + udp-multicast: + build: + context: ../src + dockerfile: ../docker/Dockerfile + ports: + - 5353:5353 + network_mode: "host"