aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index cc0c52d..71ce635 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM debian:bullseye-slim
LABEL maintainer="Michael McVady <femtonaut@gmail.com>"
-COPY . /clog
+COPY . /tmp/clog
ARG KORE_VERSION=4.2.2
@@ -18,20 +18,25 @@ RUN set -e \
pkg-config \
libssl-dev \
libpq-dev \
+ && cd /tmp \
&& curl https://kore.io/releases/kore-${KORE_VERSION}.tar.gz --output kore-${KORE_VERSION}.tar.gz \
&& tar zfvx kore-${KORE_VERSION}.tar.gz \
&& cd kore-${KORE_VERSION} \
&& make clean \
&& make PGSQL=1 TLS_BACKEND=none \
&& make install \
- && cd .. \
- && rm -rf kore-${KORE_VERSION} \
- && cd /clog \
+ && cd ..
+
+RUN set -e \
+ && rm -rf /tmp/kore-${KORE_VERSION} \
+ && cd /tmp/clog \
&& cp -r assets /var/chroot/kore/. \
- && kodev build
+ && kodev build \
+ && mkidr /clog \
+ && cp clog /clog/.
EXPOSE 8888
STOPSIGNAL SIGQUIT
WORKDIR /clog
-ENTRYPOINT [ "kore", "-c", "conf/clog.conf", "-f"]
+ENTRYPOINT [ "clog", "-f"]