From 910a71e0d2e3bfe3449e2ede99b29f5f785ef644 Mon Sep 17 00:00:00 2001 From: deflax Date: Fri, 17 Nov 2023 20:13:22 -0500 Subject: [PATCH] fix netcat --- docker-compose.yml | 4 ++++ flask/Dockerfile | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 98dc926..128433d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,8 @@ services: - "./data/dbadmin:/var/lib/pgadmin" env_file: - ./.env + expose: + - 5050 restart: always networks: - internal @@ -44,6 +46,8 @@ services: - "./data/osmtile:/data/database/" command: "run" #command: "import" + expose: + - 8000 networks: - internal restart: always diff --git a/flask/Dockerfile b/flask/Dockerfile index d13012c..74c9020 100644 --- a/flask/Dockerfile +++ b/flask/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update && \ RUN pip install --upgrade pip RUN pip install flake8 COPY . /usr/src/app/ -RUN flake8 --ignore=E501,F401 . +#RUN flake8 --ignore=E501,F401 . # install python dependencies COPY ./requirements.txt . @@ -47,7 +47,7 @@ RUN mkdir $APP_HOME WORKDIR $APP_HOME # install dependencies -RUN apt-get update && apt-get install -y --no-install-recommends netcat +RUN apt-get update && apt-get install -y --no-install-recommends netcat-openbsd COPY --from=builder /usr/src/app/wheels /wheels COPY --from=builder /usr/src/app/requirements.txt . RUN pip install --upgrade pip