aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2023-01-04 18:21:23 -0600
committerMichael McVady <femtonaut@gmail.com>2023-01-04 18:26:26 -0600
commit16aad4026e45a07817a29af80aa1c507bc36e66c (patch)
tree28c0ea11486556ac7da7c8c8639f036bf2ac64d8 /Dockerfile
parent223c5762f9cd5bb1e9d77ec21d927847600a6a0b (diff)
Fix DNS in chroot env
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 9d840c1..0c436bb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -31,6 +31,9 @@ RUN set -e \
&& mkdir -p /var/chroot \
&& addgroup --gid 502 clog \
&& adduser --disabled-password --uid 502 --home /var/chroot/clog --shell /sbin/nologin --ingroup clog --gecos "" clog \
+ && mkdir -p /var/chroot/clog/etc \
+ && mkdir -p /var/chroot/clog/lib/x86_64-linux-gnu \
+ && cp /lib/x86_64-linux-gnu/libnss_dns.so.2 /var/chroot/clog/lib/x86_64-linux-gnu/libnss_dns.so.2 \
&& apt-get update -qq \
&& apt-get install -y \
libssl-dev \
@@ -38,10 +41,10 @@ RUN set -e \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build-stage /tmp/clog/assets /var/chroot/clog/assets/.
-COPY --from=build-stage /tmp/clog/clog /var/chroot/clog/.
+COPY --from=build-stage /tmp/clog/clog /tmp/clog/run.sh /var/chroot/clog/.
EXPOSE 8888
STOPSIGNAL SIGQUIT
WORKDIR /var/chroot/clog
-ENTRYPOINT [ "./clog", "-f"]
+ENTRYPOINT [ "./run.sh" ]