From 4c8b390756b6bc1aedeb65bf163c6f62f2096f30 Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Tue, 30 Jan 2024 09:09:22 +0100 Subject: [PATCH] Update dockerfile Add port for webgui --- DataScraper/DOCKERFILE | 2 +- WebGui/DOCKERFILE | 2 +- docker-compose.yml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DataScraper/DOCKERFILE b/DataScraper/DOCKERFILE index ed36aee..1582776 100644 --- a/DataScraper/DOCKERFILE +++ b/DataScraper/DOCKERFILE @@ -8,7 +8,7 @@ WORKDIR /app COPY ./main.py /app/ # Install any dependencies -RUN pip install --no-cache-dir bluepy.btle +RUN pip install --no-cache-dir bluepy # Set the entry point CMD ["python", "main.py"] \ No newline at end of file diff --git a/WebGui/DOCKERFILE b/WebGui/DOCKERFILE index 5514e52..1227184 100644 --- a/WebGui/DOCKERFILE +++ b/WebGui/DOCKERFILE @@ -8,7 +8,7 @@ WORKDIR /app COPY ./Helloworld.py /app/ #expose port -#EXPOSE 5000 +EXPOSE 5000 # Install any dependencies RUN pip install --no-cache-dir Flask==2.1.2 diff --git a/docker-compose.yml b/docker-compose.yml index 989bdfd..b68c3e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,8 @@ services: build: context: ./WebGui dockerfile: ./DOCKERFILE + port: + - '80:5000' # database: # image: 'mariadb:10.3'