diff options
author | Michael McVady <femtonaut@gmail.com> | 2022-05-24 01:34:41 -0500 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2022-05-24 01:34:41 -0500 |
commit | cfc8a9e18e3cf4c4b9b53a2c6e978c8624a83628 (patch) | |
tree | 85d1153157a45ddd733a4a7c1700fb39865189af | |
parent | 00fb3e41d6e6a072c9126e1f5e25147cd6201101 (diff) |
WIP: Dockerfile for standalone binary
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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"] |