From bbec5544f40acb6e67c9786b235d0a3e0a8d965c Mon Sep 17 00:00:00 2001 From: Kyle Copperfield Date: Wed, 2 Dec 2020 23:28:26 +0000 Subject: [PATCH] add alpine builder --- .gitlab-ci.yml | 9 ++++++++- signald-builder-alpine.Dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 signald-builder-alpine.Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d09799c..2fa355c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,4 +34,11 @@ builder-image:aarch64: tags: [arm-docker-builder] variables: DOCKERFILE: "signald-builder.Dockerfile" - NAME: "signald-builder-arm" \ No newline at end of file + NAME: "signald-builder-arm" + +builder-image-alpine:aarch64: + <<: *build + tags: [arm-docker-builder] + variables: + DOCKERFILE: "signald-builder-alpine.Dockerfile" + NAME: "signald-builder-alpine-arm" diff --git a/signald-builder-alpine.Dockerfile b/signald-builder-alpine.Dockerfile new file mode 100644 index 0000000..e0c92ff --- /dev/null +++ b/signald-builder-alpine.Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:latest + +RUN apk upgrade -alU \ + && apk add rust make git cargo \ + && adduser -D signald \ + && rm -rfv /var/cache/apk/* + +USER signald