aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.in
blob: 78a2341af7ac5bc753722524f1cf293239a8e9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:%%ALPINE_TAG%%
MAINTAINER Richard Mortier <mort@cantab.net>

RUN apk add --update-cache \
      alpine-conf \
      alpine-sdk \
    && setup-apkcache /var/cache/apk \
    && setup-apkrepos -1

RUN adduser -D builder \
    && addgroup builder abuild \
    && echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

RUN printf -- '/home/builder/packages/%s\n' main community testing \
    >> /etc/apk/repositories

USER builder
WORKDIR /home/builder
COPY entrypoint.sh /home/builder
RUN mkdir packages

ENTRYPOINT ["/home/builder/entrypoint.sh"]