aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-05-24 16:21:07 -0500
committerMichael McVady <femtonaut@gmail.com>2022-05-24 16:21:07 -0500
commited95042928c8c5d1117ef99eace2af404c2cc29c (patch)
treea9282fd8e12c3ca5dd64a11b5d9022fc93b88cb0 /Dockerfile
parentbf4de57fec1367550160eb9292cafc36960e9b5f (diff)
Clean up Docker build-stage
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"]