Commit 52d33789 authored by DasSkelett's avatar DasSkelett

Merge branch 'fix/unknown-syscalls' into 'master'

Install patched glibc to workaround new syscalls not known to older Docker/runc

Closes #2

See merge request DasSkelett/nginx-quic-docker!2
parents 3a3f3126 cc060585
FROM archlinux:base-devel FROM archlinux:base-devel
# Manually install patched glibc to workaround new system calls not known to Docker/runc
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
bsdtar -C / -xvf "$patched_glibc"
RUN set -x \ RUN set -x \
&& groupadd --gid 101 --system nginx \ && groupadd --gid 101 --system nginx \
&& useradd --uid 101 --gid nginx --system --create-home --home-dir /var/cache/nginx --shell /sbin/nologin nginx \ && useradd --uid 101 --gid nginx --system --create-home --home-dir /var/cache/nginx --shell /sbin/nologin nginx \
...@@ -12,6 +17,7 @@ RUN set -x \ ...@@ -12,6 +17,7 @@ RUN set -x \
&& cd nginx-quic \ && cd nginx-quic \
&& makepkg -scri --noconfirm \ && makepkg -scri --noconfirm \
" \ " \
&& rm -f /etc/sudoers.d/nginx \
&& rm -rf /aur \ && rm -rf /aur \
&& rm -rf /var/cache/pacman/pkg/* && rm -rf /var/cache/pacman/pkg/*
RUN openssl req -x509 -newkey rsa:4096 -days 365 -subj '/CN=localhost/O=localhost/C=US' \ RUN openssl req -x509 -newkey rsa:4096 -days 365 -subj '/CN=localhost/O=localhost/C=US' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment