From a1b53923acaa3b406be8c86ae4a80f231eef4178 Mon Sep 17 00:00:00 2001 From: Condorra Date: Sun, 3 Nov 2024 23:39:47 +1100 Subject: [PATCH] Use a base image with ca-certificates installed. --- .ci/server-base-image/Containerfile | 5 +++++ .ci/server-base-image/push-image.sh | 4 ++++ container/Containerfile | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .ci/server-base-image/Containerfile create mode 100755 .ci/server-base-image/push-image.sh diff --git a/.ci/server-base-image/Containerfile b/.ci/server-base-image/Containerfile new file mode 100644 index 0000000..0573618 --- /dev/null +++ b/.ci/server-base-image/Containerfile @@ -0,0 +1,5 @@ +FROM debian:bookworm-slim +RUN apt-get -y update && \ + apt-get -y install \ + ca-certificates && \ + rm -rf /var/lib/apt/lists/* diff --git a/.ci/server-base-image/push-image.sh b/.ci/server-base-image/push-image.sh new file mode 100755 index 0000000..4060ade --- /dev/null +++ b/.ci/server-base-image/push-image.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo podman build -t quay.io/blasthavers/worldwideportal-baseimg:latest . +sudo podman push quay.io/blasthavers/worldwideportal-baseimg:latest diff --git a/container/Containerfile b/container/Containerfile index 4707926..1f622d1 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -1,4 +1,4 @@ -FROM debian:bookworm-slim +FROM quay.io/blasthavers/worldwideportal-baseimg COPY wwpapp /frontendstatic COPY wwpserver/worldwideportal-server /bin/worldwideportal-server ENTRYPOINT ["/bin/worldwideportal-server"]