From 7d6216179463ffa6e5c67b3bbc40f3f30efded14 Mon Sep 17 00:00:00 2001 From: Lucas Mathews Date: Fri, 17 May 2024 12:45:10 +0200 Subject: [PATCH] Fixed code to allow this to run in docker --- Dockerfile | 8 ++++---- bank.ini | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index db4f3a8..af9405e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,12 @@ FROM python:3.12.3 LABEL maintainer="522499@student.fontys.nl" -WORKDIR /bank +WORKDIR /banking-system -COPY / /bank/ +COPY / /banking-system/ EXPOSE 81 -RUN pip install --no-cache-dir --upgrade -r /bank/requirements.txt +RUN pip install --no-cache-dir --upgrade -r /banking-system/requirements.txt -ENTRYPOINT [ "python", "./api.py", "--host", "0.0.0.0", "--port", "81"] +ENTRYPOINT ["python", "./api.py", "--host", "0.0.0.0", "--port", "81"] diff --git a/bank.ini b/bank.ini index bb1cf16..b006f23 100644 --- a/bank.ini +++ b/bank.ini @@ -6,15 +6,15 @@ add_sample_data=True name=api.yml [server] -listen_ip=127.0.0.1 +listen_ip=0.0.0.0 port=81 debug=True [frontend] -listen_ip=127.0.0.1 +listen_ip=0.0.0.0 port=80 debug=True [api] -url=http://127.0.0.1:81/ +url=http://0.0.0.0:81/