From 4723a5a39ef9f253cd291dfb9951427ee57a7ac6 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 10 Sep 2019 20:23:52 -0300 Subject: [PATCH] sdk --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Dockerfile b/Dockerfile index 59c5898..6695989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,21 @@ FROM sutty/monit:latest MAINTAINER "f " + +RUN apk add --no-cache alpine-sdk +RUN adduser -s /bin/sh -D builder +RUN adduser builder abuild + +# Generate keys +# +# TODO: It doesn't matter if we publish them because they're private +# repositories. +USER builder +RUN abuild-keygen +RUN echo /home/builder/.abuild/*.rsa \ + | sed "s/^/PACKAGER_PRIVKEY=/" \ + >> /home/builder/.abuild/abuild.conf + +# Install keys and local repository +USER root +RUN cp /home/builder/.abuild/*.pub /etc/apk/keys/ +RUN echo /home/builder/packages/home >> /etc/apk/repositories