aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index 042cf0c..4f91dca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,4 @@
-FROM debian:bullseye-slim
-
-LABEL maintainer="Michael McVady <femtonaut@gmail.com>"
+FROM debian:bullseye-slim AS build-stage
COPY . /tmp/clog
@@ -35,17 +33,14 @@ RUN set -e \
&& adduser --disabled-password --uid 502 --home /var/chroot/clog --shell /sbin/nologin --ingroup clog clog \
&& apt-get update -qq \
&& apt-get install -y \
- curl \
- pkg-config \
libssl-dev \
libpq-dev
-WORKDIR /var/chroot/clog
-
-COPY --from=0 /tmp/clog/assets /var/chroot/clog/assets/.
-COPY --from=0 /tmp/clog/clog /var/chroot/clog/.
+COPY --from=build-stage /tmp/clog/assets /var/chroot/clog/assets/.
+COPY --from=build-stage /tmp/clog/clog /var/chroot/clog/.
EXPOSE 8888
STOPSIGNAL SIGQUIT
+WORKDIR /var/chroot/clog
ENTRYPOINT [ "./clog", "-f"]