Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions application/single_app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ FROM mcr.microsoft.com/azurelinux/base/python:3.12 AS builder
ARG UID
ARG GID

# Setup pip.conf if has content
COPY pip.conf.d/ /etc/pip.conf.d
# Copy pip.conf into the image for pip configuration
COPY docker-customization/pip.conf /etc/pip.conf

# CA
# copy certs to /etc/pki/ca-trust/source/anchors
COPY custom-ca-certificates/ /etc/ssl/certs
RUN mkdir -p /etc/pki/ca-trust/source/anchors/ \
&& update-ca-trust enable \
&& cp /etc/ssl/certs/*.crt /etc/pki/ca-trust/source/anchors/ \
COPY docker-customization/custom-ca-certificates/ /etc/pki/ca-trust/source/anchors
RUN update-ca-trust enable \
&& update-ca-trust extract

ENV PYTHONUNBUFFERED=1
Expand Down Expand Up @@ -44,6 +42,7 @@ ARG UID
ARG GID

COPY --from=builder /etc/pki /etc/pki
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
COPY --from=builder /home/nonroot /home/nonroot
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
Expand All @@ -59,8 +58,11 @@ ENV HOME=/home/nonroot \
PYTHONIOENCODING=utf-8 \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONUNBUFFERED=1

PYTHONUNBUFFERED=1 \
SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt \
SSL_CERT_DIR=/etc/ssl/certs \
REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt

WORKDIR /app

# Copy application code and set ownership
Expand Down
1 change: 1 addition & 0 deletions docker-customization/pip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Add pip configuration here
5 changes: 5 additions & 0 deletions docs/explanation/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
* **Files Modified**: `chat-citations.js`.
* (Ref: Citation parsing, page range handling, `CITATION_IMPROVEMENTS.md`)

* **Docker Customization: CA Certificate and pip.conf**
* Fixed Docker customization issues related to custom CA certificate handling and `pip.conf` configuration.
* Ensures Python package installation works reliably in environments requiring custom certificate trust and pip configuration.
* (Ref: Docker customization, CA cert setup, `pip.conf` handling)
Comment on lines +93 to +96
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds a new behavior/doc and a release-notes entry under v0.238.024, but application/single_app/config.py still defines VERSION = "0.238.024". If this is intended to ship as a new patch, bump the third segment in config.py and add the release-notes entry under the new version header to keep versioning consistent.

Copilot uses AI. Check for mistakes.

#### User Interface Enhancements

* **Extended Document Dropdown Width**
Expand Down
9 changes: 9 additions & 0 deletions docs/how-to/docker_customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Docker Customization

## Custom Certificate Authorities

Add custom certificate authorities to [/docker-customization/custom-ca-certificates](/docker-customization/custom-ca-certificates/) and they will be pull in to the system CAs during docker build. Must be in .crt format.

## Custom pip.conf

Add customization as needed to [/docker-customization/pip.conf](/docker-customization/pip.conf). This will be used during docker build.
Empty file removed pip.conf.d/.gitkeep
Empty file.
Loading