aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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" ]