~dricottone/container-images

ref: aeea21ad11a681b794ebe21bda485938cffe5f12 container-images/apkbuilder/Dockerfile -rw-r--r-- 876 bytes
aeea21adDominic Ricottone Adding a WebDAV variant of Nginx 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM docker.io/library/alpine:3.17

RUN adduser -D builder && addgroup builder abuild

# packaging script
COPY --chown=builder:builder build.sh /home/builder/build.sh
RUN chmod 755 /home/builder/build.sh

# packaging configuration
COPY --chown=builder:builder abuild /home/builder/.abuild
RUN chmod 600 /home/builder/.abuild/*

RUN apk add --no-cache abuild sudo
RUN echo "builder ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
COPY abuild/*.rsa.pub /etc/apk/keys/
RUN chmod 644 /etc/apk/keys/*.rsa.pub
RUN mv /etc/apk/repositories /etc/apk/repositories.bak
RUN echo "https://pkg.intra.dominic-ricottone.com/alpine/v3.17" | cat - /etc/apk/repositories.bak >/etc/apk/repositories

USER builder
WORKDIR /home/builder
RUN mkdir -p /home/builder/packages
VOLUME /home/builder/packages/src
VOLUME /home/builder/src
ENTRYPOINT ["/home/builder/build.sh"]
CMD ["non_existant_package_name"]