Skip to content

Commit 36bf2c3

Browse files
authored
Merge pull request #3737 from akto-api-security/fix_threat_release_version_production_workflow
feat: add optional release version for Threat Detection deployment in…
2 parents 294317a + 39ed033 commit 36bf2c3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
release_version:
99
description: 'Release version for the deployment'
1010
required: true
11+
release_version_threat:
12+
description: 'Release version for the Threat Detection deployment'
13+
required: false
1114
skipTests:
1215
description: 'Do you want to skip unit tests?'
1316
required: true

apps/agent-traffic-analyzer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ RUN pip install --no-cache-dir -r requirements.txt
1515

1616
# Copy source code
1717
COPY src/ ./src/
18-
COPY start.sh ./
19-
RUN chmod +x start.sh
2018

2119
# Create cache directory for HuggingFace models
2220
RUN mkdir -p /app/.cache/huggingface
@@ -33,5 +31,6 @@ RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTr
3331

3432
EXPOSE 8093
3533

36-
CMD ["./start.sh"]
34+
# Run uvicorn directly (PORT env var is already set, defaults to 8093)
35+
CMD ["sh", "-c", "python -m uvicorn src.agent_traffic_analyzer:app --host 0.0.0.0 --port ${PORT:-8093}"]
3736

0 commit comments

Comments
 (0)