fix netcat

This commit is contained in:
deflax 2023-11-17 20:13:22 -05:00
parent 7661384e94
commit 910a71e0d2
2 changed files with 6 additions and 2 deletions

View file

@ -16,6 +16,8 @@ services:
- "./data/dbadmin:/var/lib/pgadmin" - "./data/dbadmin:/var/lib/pgadmin"
env_file: env_file:
- ./.env - ./.env
expose:
- 5050
restart: always restart: always
networks: networks:
- internal - internal
@ -44,6 +46,8 @@ services:
- "./data/osmtile:/data/database/" - "./data/osmtile:/data/database/"
command: "run" command: "run"
#command: "import" #command: "import"
expose:
- 8000
networks: networks:
- internal - internal
restart: always restart: always

View file

@ -20,7 +20,7 @@ RUN apt-get update && \
RUN pip install --upgrade pip RUN pip install --upgrade pip
RUN pip install flake8 RUN pip install flake8
COPY . /usr/src/app/ COPY . /usr/src/app/
RUN flake8 --ignore=E501,F401 . #RUN flake8 --ignore=E501,F401 .
# install python dependencies # install python dependencies
COPY ./requirements.txt . COPY ./requirements.txt .
@ -47,7 +47,7 @@ RUN mkdir $APP_HOME
WORKDIR $APP_HOME WORKDIR $APP_HOME
# install dependencies # 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/wheels /wheels
COPY --from=builder /usr/src/app/requirements.txt . COPY --from=builder /usr/src/app/requirements.txt .
RUN pip install --upgrade pip RUN pip install --upgrade pip