Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Bring back root CA certificates to a Service Catalog Docker image #2071

Merged
merged 1 commit into from
May 25, 2018
Merged
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
12 changes: 12 additions & 0 deletions build/service-catalog/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Build a Debian-based image to copy root CA certificates from it
# to a scratch-based image using Docker multi-stage builds
FROM BASEIMAGE as base

RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install ca-certificates -y && \
rm -rf /var/lib/apt/lists/*

# Build actual scratch-based Service Catalog image with root CA certificates
FROM scratch

COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

ADD tmp /tmp

ADD service-catalog opt/services/
Expand Down