This commit is contained in:
f 2019-09-10 20:23:52 -03:00
parent a2e27c5316
commit 4723a5a39e
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -1,2 +1,21 @@
FROM sutty/monit:latest
MAINTAINER "f <f@sutty.nl>"
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