From ed95042928c8c5d1117ef99eace2af404c2cc29c Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Tue, 24 May 2022 16:21:07 -0500 Subject: Clean up Docker build-stage --- Dockerfile | 13 ++++--------- 1 file 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 " +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"] -- cgit v1.2.3