feat: add ca-certificates
This commit is contained in:
parent
667709b526
commit
f84c93e78f
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ WORKDIR /build
|
||||||
|
|
||||||
# Define build arguments
|
# Define build arguments
|
||||||
ARG BASE_FILES_VERSION=13.7
|
ARG BASE_FILES_VERSION=13.7
|
||||||
|
ARG CACERTIFICATES_VERSION=20241223
|
||||||
ARG LIBGCC_VERSION=14.2.0-19
|
ARG LIBGCC_VERSION=14.2.0-19
|
||||||
ARG GLIBC_VERSION=2.41-6
|
ARG GLIBC_VERSION=2.41-6
|
||||||
ARG TZDATA_VERSION=2025b-1
|
ARG TZDATA_VERSION=2025b-1
|
||||||
|
@ -13,6 +14,7 @@ ARG TZDATA_VERSION=2025b-1
|
||||||
# Download required Debian packages
|
# Download required Debian packages
|
||||||
RUN wget -q \
|
RUN wget -q \
|
||||||
https://ftp.debian.org/debian/pool/main/b/base-files/base-files_${BASE_FILES_VERSION}_amd64.deb \
|
https://ftp.debian.org/debian/pool/main/b/base-files/base-files_${BASE_FILES_VERSION}_amd64.deb \
|
||||||
|
https://ftp.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_${CACERTIFICATES_VERSION}_all.deb \
|
||||||
https://ftp.debian.org/debian/pool/main/g/gcc-14/libgcc-s1_${LIBGCC_VERSION}_amd64.deb \
|
https://ftp.debian.org/debian/pool/main/g/gcc-14/libgcc-s1_${LIBGCC_VERSION}_amd64.deb \
|
||||||
https://ftp.debian.org/debian/pool/main/g/glibc/libc6_${GLIBC_VERSION}_amd64.deb \
|
https://ftp.debian.org/debian/pool/main/g/glibc/libc6_${GLIBC_VERSION}_amd64.deb \
|
||||||
https://ftp.debian.org/debian/pool/main/g/glibc/libc-bin_${GLIBC_VERSION}_amd64.deb \
|
https://ftp.debian.org/debian/pool/main/g/glibc/libc-bin_${GLIBC_VERSION}_amd64.deb \
|
||||||
|
@ -27,6 +29,8 @@ RUN mkdir -p var/lib/dpkg && \
|
||||||
(cat control; echo) >> var/lib/dpkg/status && \
|
(cat control; echo) >> var/lib/dpkg/status && \
|
||||||
rm -f $deb control.tar.xz data.tar.xz control; \
|
rm -f $deb control.tar.xz data.tar.xz control; \
|
||||||
done && \
|
done && \
|
||||||
|
# Generate certificates file and links
|
||||||
|
find usr/share/ca-certificates -type f -name '*.crt' -exec sh -c 'ln -sf /$1 etc/ssl/certs/$(basename $1) && cat "$1" >> etc/ssl/certs/ca-certificates' sh {} \; && \
|
||||||
# Create a non-root user directory
|
# Create a non-root user directory
|
||||||
mkdir -p /home/nonroot && \
|
mkdir -p /home/nonroot && \
|
||||||
chown 65532:65532 /home/nonroot && \
|
chown 65532:65532 /home/nonroot && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue