From fd0b28f041b6a81788cd0d5b11c631a84d487400 Mon Sep 17 00:00:00 2001 From: fardin-developer Date: Fri, 17 Jan 2025 22:37:21 +0530 Subject: [PATCH] docker added --- Dockerfile | 16 ++++++++++++++++ requirements.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3d7879e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.11-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +RUN chmod +x /app/agentic_security.py || true + +EXPOSE 8718 + +# Run the initialization command first, then start the application +CMD ["sh", "-c", "python -m agentic_security i && python -m agentic_security s"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index aa7b71e..d6cece5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ cache_to_disk # datasets loguru pandas +agentic_security \ No newline at end of file