kore-docker

Official Kore Dockerfiles
Commits | Files | Refs | README | git clone

commit 9ceee807194d4b887dc3efeb08139cfd48f7fe15
parent 30ebb69c453f4c91b42b76bcedcaa9b43e91a79a
Author: Joris Vink <joris@coders.se>
Date:   Mon, 10 May 2021 15:28:31 +0200

More Dockerfile improvements.

Diffstat:
4.1.0/Dockerfile | 8++++----
git-master/Dockerfile | 12++++++------
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/4.1.0/Dockerfile b/4.1.0/Dockerfile @@ -7,15 +7,15 @@ RUN apk add --no-cache \ libpq \ python3 -RUN mkdir -p /var/chroot && \ +RUN set -e && \ + mkdir -p /var/chroot && \ addgroup -g 500 keymgr && \ adduser -D -u 500 -h /var/chroot/keymgr -s /sbin/nologin -G keymgr keymgr && \ addgroup -g 501 acme && \ adduser -D -u 501 -h /var/chroot/acme -s /sbin/nologin -G acme acme && \ addgroup -g 502 kore && \ - adduser -D -u 502 -h /koreapp -s /sbin/nologin -G kore kore - -RUN apk add --no-cache --virtual .build-deps \ + adduser -D -u 502 -h /var/chroot/kore -s /sbin/nologin -G kore kore && \ + apk add --no-cache --virtual .build-deps \ musl-dev \ linux-headers \ bsd-compat-headers \ diff --git a/git-master/Dockerfile b/git-master/Dockerfile @@ -7,17 +7,17 @@ RUN apk add --no-cache \ libpq \ python3 -RUN mkdir -p /var/chroot && \ +ADD https://git.kore.io/kore.git/refs/heads/master master.commit + +RUN set -e && \ + mkdir -p /var/chroot && \ addgroup -g 500 keymgr && \ adduser -D -u 500 -h /var/chroot/keymgr -s /sbin/nologin -G keymgr keymgr && \ addgroup -g 501 acme && \ adduser -D -u 501 -h /var/chroot/acme -s /sbin/nologin -G acme acme && \ addgroup -g 502 kore && \ - adduser -D -u 502 -h /koreapp -s /sbin/nologin -G kore kore - -ADD https://git.kore.io/kore.git/refs/heads/master master.commit - -RUN apk add --no-cache --virtual .build-deps \ + adduser -D -u 502 -h /var/chroot/kore -s /sbin/nologin -G kore kore && \ + apk add --no-cache --virtual .build-deps \ musl-dev \ linux-headers \ bsd-compat-headers \