File tree Expand file tree Collapse file tree
sample_solutions/MultiAgentQnA Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ RUN pip install --no-cache-dir -r requirements.txt
1212# Copy the rest of the application files into the container
1313COPY . .
1414
15+ RUN groupadd -r appuser && useradd -r -g appuser appuser
16+ RUN chown -R appuser:appuser /app
17+ USER appuser
18+
1519# Expose the port the service runs on
1620EXPOSE 5001
1721
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def __init__(self):
2121 self .embedding_base_url = config .EMBEDDING_API_ENDPOINT
2222 self .inference_base_url = config .INFERENCE_API_ENDPOINT
2323 self .token = config .INFERENCE_API_TOKEN
24- self .http_client = httpx .Client (verify = False )
24+ self .http_client = httpx .Client ()
2525 logger .info (f"✓ API Client initialized - Embedding: { self .embedding_base_url } , Inference: { self .inference_base_url } " )
2626
2727 def get_embedding_client (self ):
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ RUN npm install
1212# Copy the rest of the application files
1313COPY . .
1414
15+ RUN groupadd -r nodeuser && useradd -r -g nodeuser nodeuser
16+ RUN chown -R nodeuser:nodeuser /app
17+ USER nodeuser
18+
1519# Expose the port the app runs on
1620EXPOSE 3000
1721
You can’t perform that action at this time.
0 commit comments