Skip to content

Commit 9750365

Browse files
committed
Fix curl SSL failure
Add ca-certificates to the initial apt-get install so curl can verify HTTPS connections when fetching GPG keys for the Adoptium and MongoDB repos. Without it curl exits with code 77 (certificate file error). Remove the outdated openjdk-8/7 comment in Dockerfile
1 parent b38ee8d commit 9750365

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
5656
&& chmod +x /usr/local/bin/docker-build.sh \
5757
&& chmod -R +x /usr/local/docker/pre_build
5858

59-
# Push installing openjdk-8-jre first, so that the unifi package doesn't pull in openjdk-7-jre as a dependency? Else uncomment and just go with openjdk-7.
6059
RUN set -ex \
6160
&& mkdir -p /usr/share/man/man1/ \
6261
&& groupadd -r unifi -g $UNIFI_GID \

docker-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fi
3636
apt-get update
3737
apt-get install -qy --no-install-recommends \
3838
apt-transport-https \
39+
ca-certificates \
3940
curl \
4041
dirmngr \
4142
gpg \

0 commit comments

Comments
 (0)