aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-05-25 17:02:01 -0500
committerMichael McVady <femtonaut@gmail.com>2022-05-25 17:02:01 -0500
commit9e22f355a9e811fba2503133591099a35f9b1fe3 (patch)
treebad1e566c421aebf73f02738dc0ff9e6f3077dbc /Dockerfile
parented95042928c8c5d1117ef99eace2af404c2cc29c (diff)
Clean up Docker image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 4f91dca..64fd0cb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,11 +30,13 @@ LABEL maintainer="Michael McVady <femtonaut@gmail.com>"
RUN set -e \
&& mkdir -p /var/chroot \
&& addgroup --gid 502 clog \
- && adduser --disabled-password --uid 502 --home /var/chroot/clog --shell /sbin/nologin --ingroup clog clog \
+ && adduser --disabled-password --uid 502 --home /var/chroot/clog --shell /sbin/nologin --ingroup clog --gecos "" clog \
&& apt-get update -qq \
&& apt-get install -y \
libssl-dev \
- libpq-dev
+ libpq-dev \
+ && rm -rf /var/lib/apt/lists/*
+
COPY --from=build-stage /tmp/clog/assets /var/chroot/clog/assets/.
COPY --from=build-stage /tmp/clog/clog /var/chroot/clog/.