Build container to build Alpine apk packages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
719 B

FROM alpine:3.15
ARG ALPINE="v3.15"
# echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
RUN echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE}/main" > /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE}/community" >> /etc/apk/repositories && \
apk -U add alpine-sdk sudo pigz && \
adduser -D alpine && \
addgroup alpine abuild && \
echo "alpine ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
install -d -g abuild -m 775 /var/cache/distfiles && \
install -d -g abuild -m 775 /packages
COPY abuilder /usr/bin/
WORKDIR /home/alpine/work
USER alpine
ENTRYPOINT ["abuilder"]