From e80ad2f38914306b28dceee2921d68047d114864 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Mon, 4 Nov 2024 00:17:50 +0300 Subject: [PATCH] update --- Dockerfile | 5 ++--- docker-compose.yaml | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6327b8c..ab8348d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,6 @@ RUN ln -s /app/nltk_data /root/nltk_data ENV PYTHONPATH=/app ARG DATASET -ARG PORT ARG WEB_API_URL ARG RABBITMQ_HOST ARG RABBITMQ_PORT @@ -46,7 +45,7 @@ ARG RABBITMQ_USER ARG RABBITMQ_PASS ARG RABBITMQ_QUEUE -ENV PORT=${PORT} \ +ENV PORT=8080 \ DATASET=${DATASET} \ WORKING_DIR=/app/nltk_data \ FUCKING_DIR=/usr/local/lib/python3.10/site-packages/spam_detector_ai/models \ @@ -60,4 +59,4 @@ ENV PORT=${PORT} \ RUN python3 -m src.preparer -ENTRYPOINT [ "bash", "-c", "while true; do sleep 1; done" ] \ No newline at end of file +ENTRYPOINT [ "bash", "-c", "while true; do sleep 1; done" ] diff --git a/docker-compose.yaml b/docker-compose.yaml index 394b6d3..d2055d1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,6 @@ services: build: ./ container_name: spam-detector-decision-maker environment: - - PORT=${PORT:-8080} - TOKEN=token12345 - RABBITMQ_HOST=${RABBITMQ_HOST} - RABBITMQ_PORT=${RABBITMQ_PORT:-5672} @@ -26,7 +25,7 @@ services: - ${MODELS_DIR}:/app/models restart: always ports: - - "8080:${PORT:-8080}" + - "${PORT:-8080}:8080" networks: - spam-detector-internal - rabbitmq